Challenge Ideas

Optional extensions for readers who want to keep building after the main version of the game is complete.

Core challenges

  • Prevent duplicate guesses from counting twice.
  • Track the best score during a session.
  • Save the best score to a file between runs.
  • Allow the player to choose a custom minimum and maximum range.

Stretch ideas

  • Add a reusable yes or no helper function.
  • Count invalid inputs separately.
  • Add difficulty levels.
  • Write a version that remembers previous guesses.

A good way to use these

Pick one challenge at a time. Keep it small. Get it working. Then make it better. That is the same mindset the book teaches through the guessing game itself.