mitre

Create a Number Guessing Game

The Number Guessing Game challenges players to guess a randomly selected number within a specified range. Players receive feedback on whether their guess is too high or too low, helping them narrow down the possibilities. The game tracks the number of attempts, and upon correctly guessing the number, players are congratulated and shown their total attempts, with an option to play again. Choose any language you'd like.

(F) Minimum Viable Product (MVP)
link

A simple game where players try to guess a randomly chosen number within a specified range. The game provides feedback on guesses and displays the number of attempts made.

optional
circle
(S) Game Initialization

As a player, I want to see instructions and be prompted to start the game, so that I know how to play and can begin guessing the number.

Key Points
  • The game should display a welcome message and basic instructions.
  • The player should be informed of the range of numbers to guess from.
  • The game should prompt the player to start guessing.
optional
circle
(S) Number Guessing

As a player, I want to guess the number and receive feedback, so that I can adjust my guesses based on hints provided.

Key Points
  • The game should randomly select a number within the specified range.
  • For each guess, the game should inform the player whether their guess is too high, too low, or correct.
  • The game should keep track of the number of attempts made.
optional
circle
(S) Game Conclusion

As a player, I want to know when I've guessed correctly and see my total attempts, so that I can evaluate my performance.

Key Points
  • The game should congratulate the player upon guessing the correct number.
  • The total number of attempts should be displayed.
  • The player should be given an option to play again or exit the game.
(F) Enhancements
link

Additional features to enhance the Number Guessing Game, providing more depth and customization options for players.

optional
circle
(S) Difficulty Levels

As a player, I want to choose a difficulty level before starting the game, so that I can adjust the range of numbers and make the game more challenging or easier.

Key Points
  • The game should present difficulty options (e.g., Easy, Medium, Hard) at the start.
  • Each difficulty level should have a predefined range of numbers (e.g., Easy: 1-10, Medium: 1-50, Hard: 1-100).
  • The game should use the selected difficulty to set the range for the randomly chosen number.
optional
circle
(S) Guess History

As a player, I want to see a history of my previous guesses, so that I can avoid repeating the same guesses and strategize better.

Key Points
  • The game should maintain a list of all previous guesses during a session.
  • The list should be displayed after each guess, showing the player's guess and the corresponding feedback (too high, too low).
  • The guess history should be cleared when starting a new game.