Number Guessing Game SRS
Number Guessing Game SRS
(SRS)
Project Title: Number Guessing Game
1. Introduction
1.1 Scope
The Number Guessing Game is a console-based application built using C++. The system
generates a random number between 1 and 100 and allows users 10 attempts to guess it.
Feedback and hints are provided to guide the player. Scores are calculated based on
attempts and high scores are stored persistently.
1.2 Objectives
- Create an interactive and user-friendly guessing game.
- Track and persist user performance (high scores).
- Enhance engagement through color-coded feedback and hints.
2. Overall Description
2.4 Constraints
- Windows OS only (due to dependency on Windows.h).
- Console interface only.
- Input restricted to numerical values between 1 and 100.
3. Specific Requirements
FR1.3: After each guess, provide feedback whether the guess is too high or too low.
FR1.7: Update the high score file if the player's score exceeds the current high score.
FR1.9: Validate all menu inputs to ensure they fall within a valid range (0–3).
FR1.10: Use console text colors to indicate different message types (e.g., red for errors,
green for success).
FR1.12: Inform the player of the correct number if all 10 attempts are used.
MR1.3: Display motivational or humorous messages based on performance (e.g., “So close!”
or “Better luck next time!”).
MR1.4: Enable saving user stats across sessions (e.g., total games played, win/loss ratio).
MR1.5: Introduce difficulty levels that adjust the number of attempts or hint frequency.
4. Other Requirements
- Logging (Optional): Track player inputs and outcomes for analytics or debugging.
- Testing: Ensure proper random number generation, scoring accuracy, and UI feedback.
- Accessibility: Use clear text formatting and contrast to support users with visual
limitations.