Skip to content

Peshote/Guess-A-Number-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The "Guess a Number" Game

Guess a Number

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.

Project Overview

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.

How to Play

  1. Run the program to start the game.
  2. In each level, guess a number within the specified range.
  3. Receive feedback on your guess and continue until you guess correctly.
  4. Complete all levels to finish the game.
  5. Your completion time and best time record will be displayed.
  6. Choose to play again or exit the game.

Solution

  • Developed using Visual Studio with .NET Core (version 3.1).

Core Concepts Utilized

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.

How to Run

  1. Clone the repository to your local machine.
  2. Open the solution in Visual Studio.
  3. Build and run the project.
  4. Follow the on-screen instructions to play the game.

Source Code

Link

Example Screenshot

image

Live Demo

You can try out the game through a live demo directly in your web browser:

Play Button

Author

License

This project is licensed under the MIT License.

About

Side Project - Guess A Number Game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages