After the horrible mess that was the scraper script, I decided to make something a bit cleaner.
It’s a nice little game that teaches you about the different months.
It works pretty well, but I think the code needs some work:
- It’s reasonably flexible already, but I want to be able to make separate quizzes without rewriting stuff.
- I’m also not sure about how I wrote the game logic inside the
months-page function. It’s messy, but I don’t see how else to do it.
- I don’t like how creating the question templates looks so ugly.
I’m a bit stuck with how to improve the code now, could anyone give me any pointers?