35. Number Guessing Game

Build a simple number-guessing game using a microcontroller that can save scores and print out the leaderboard with your current score.

The game can be as follows:

  • The microcontroller selects a random number between 1 and 100 and asks the user to guess it.
  • Once the user guesses a number, they must enter this number on the serial terminal.
  • If the guessed number is higher than the selected number, it will show “Too High”, and if it is lower, it will show “Too Low”, until the user guesses the correct number.
  • The user's guess attempts count will be saved by the microcontroller and ranked under the Leaderboard.
  • Even if the microcontroller-based Game resets or powers off, it should retain the Leaderboard.

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!