Introducing Fun With Flags, a game to help improve your knowledge of flags! For Big Bang Theory fans, this game will not sound new to you. This was inspired by main character Sheldon Cooper’s love for flags! I always thought it was so cool that Sheldon was so knowledgeable with flags. As such, I decided to make a game about flags so I can improve my own knowledge of flags! https://cheryltyn.github.io/funwithflags/
- Choose # of Questions: The user first begins at a start screen, choosing between 10, 15 or 20 questions.
- Guess the Random Flag: The user can then guess the flag. If they’re unsure, the number of letters provided can be helpful.
- Hints Provided: As the user keeps guessing, the letters will populate. Providing some hints for the user to keep progressing.
- Feeling stuck? The user can always choose to skip.
- Get your final score: Once the game ends, the user can see their final score and choose to restart!
- HTML, CSS were used for the design of the website
- Javascript was used to run the game mechanics
- Preventing repeated flags: Despite it only having 10-20 questions, I wanted to prevent the possibility of flags reappearing. As such, I had to remove a flag from the list whenever it’s already been randomly selected.
- Allowing skips: Not everyone know all the flag and I wanted to provide the option to skip a question. Yet the user had to be “penalised” for skipping, therefore I made the question number go up, while score remains the same.
- Providing hints through letters count: I added a hangman style feature which shows the number of letters, and also populates as the user guesses. This allows the guessing process to be a little more fun and progressive as the letters populate.
- Adding more dynamic hints: Adding hints specific to the countries, allowing for a more fun guessing experience for the player.
- More dynamic text match: Currently, the match of country is done letter by letter. If possible, I would hope more dynamic answers can be accepted. For example, Korea can be accepted as an answer for South Korea.
- Mobile friendly: Making the game mobile friendly for my friends to play.
- Design Improvements: I had initially wanted to make the words appear on the underline, e.g e n g l a n d but wasn’t able to find the supporting design for submissions.
- Privacy Considerations: I had initially wanted to do passport covers but upon researching, found that using them in a game might result in legal/privacy considerations.
- Replicating Errors: Some errors were difficult to replicate, for example, the same letter appearing on the next question by accident.
- Test multiple times! Errors we might not expect may show up in different scenarios. For example, certain guesses which completed the hangman didn’t necessarily move to the next question.
- While I was invested in making the code work, I would like to know how to further optimise my code.
- I would like to build the mindset to encompass more use cases as I do my pseudocode.