Skip to content

The Casino Number Guessing Game is a fun and challenging game developed in C++. In this game, the player must guess a random number generated by the computer within a given range. The player has a limited number of attempts to guess the correct number, and the game provides hints to help the player make educated guesses.

Notifications You must be signed in to change notification settings

muneeb787/Casino-Number-Guessing-Game

Repository files navigation

Casino Number Guessing Game

The Casino Number Guessing Game is a fun and challenging game developed in C++ as a first-semester project. In this game, the player must guess a random number generated by the computer within a given range. The player has a limited number of attempts to guess the correct number, and the game provides hints to help the player make educated guesses. The game features an easy-to-use interface and provides hours of entertainment for players of all skill levels. This game is a great example of how to use C++ to create an interactive and engaging gaming experience.

Gameplay Video

Watch the video

Installation

  1. Download the game files from the GitHub repository.
  2. Open the project in your preferred C++ IDE (Integrated Development Environment).
  3. Compile and run the game in the IDE.

How to Play

  1. When you run the game, you will be prompted to enter the minimum and maximum values of the number range.
  2. Once you enter the range, the game will generate a random number within that range, and you will be prompted to guess the number.
  3. You have a limited number of attempts to guess the number correctly.
  4. The game will provide hints to help you make educated guesses.
  5. If you guess the number correctly within the given number of attempts, you win! Otherwise, you lose the game.

File Handling

The game uses file handling to keep track of high scores. When a player wins the game, their score is added to a file called Record.txt. The file contains the name and score of each player who has won the game, sorted in descending order by score.

Contributing

Contributions are always welcome! If you would like to contribute to this project, please fork the repository and submit a pull request with your changes.

License

This project is Open Source anyone can use this.

About

The Casino Number Guessing Game is a fun and challenging game developed in C++. In this game, the player must guess a random number generated by the computer within a given range. The player has a limited number of attempts to guess the correct number, and the game provides hints to help the player make educated guesses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages