Skip to content

Instantly share code, notes, and snippets.

@rajivnarayana
Last active February 17, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajivnarayana/5d642909016a0ede44d9adf635a4b9ce to your computer and use it in GitHub Desktop.
Save rajivnarayana/5d642909016a0ede44d9adf635a4b9ce to your computer and use it in GitHub Desktop.

Implement the following simple addition game (2 digits) using React.

Game-480p.mov

Following things are important.

  1. The total questions will be 10.
  2. The answers should not cross 100.
  3. The questions should not be hardcoded and should change for each and every game.
  4. All the answers must be present in the options below.
  5. Timer to count up the time.
  6. Score increments for each correct answer.
  7. Game Over dialog with the score and time taken. There should also be an option to "Start New Game".
  8. 3 lives which expire for each incorrect answer. Game should be over if all 3 lives are expired.
  9. Use SnackBar to show correct or incorrect answers.

Following things are optional

  1. Leaderboard.
  2. Animations.
  3. Sound.
  4. FullScreen.
  5. Images. (Use ASCII Hearts).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment