The "Guess a Number" Game is a simple console-based C# game where players attempt to guess a randomly generated number within a specified range. Players progress through multiple levels of increasing difficulty, aiming to complete all levels as quickly as possible.
This project implements a game in which players guess a randomly generated number based on the level they are playing. The game features the following mechanics:
- Each level presents a new range for guessing a number.
- Players are provided feedback on their guesses (Too High, Too Low, or Correct).
- The game tracks completion time and displays the best time record.
- Players have the option to play again after completing all levels.
- Run the program to start the game.
- In each level, guess a number within the specified range.
- Receive feedback on your guess and continue until you guess correctly.
- Complete all levels to finish the game.
- Your completion time and best time record will be displayed.
- Choose to play again or exit the game.
- Developed using Visual Studio with .NET Core (version 3.1).
This project demonstrates the application of various programming concepts, including:
- Variables: Used to track game statistics, player input, and random number generation.
- Loops: Implemented to iterate through levels and prompt players to play again.
- Conditional Statements: Used to determine game outcomes and provide feedback to players.
- Methods: The Main method serves as the entry point and controls game flow.
- Enumeration Values: ConsoleColor enumeration is used to enhance the console output.
- Clone the repository to your local machine.
- Open the solution in Visual Studio.
- Build and run the project.
- Follow the on-screen instructions to play the game.
You can try out the game through a live demo directly in your web browser:
This project is licensed under the MIT License.