Skip to content

iNoles/Casino-Number-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casino Number Guessing Game

Welcome to the Casino Number Guessing Game! This is a simple console-based game where the player tries to guess the number chosen by the dealer within a certain range.

Introduction

In this game, the dealer will choose a random number between 1 and 100, and the player will attempt to guess that number. The player will receive feedback from the dealer after each guess, indicating whether the guessed number is too high, too low, or correct. The game continues until the player guesses the correct number.

Features

  • Randomly generated secret number for each game
  • Interactive gameplay with feedback on each guess
  • Counting the number of attempts taken to guess the correct number

Installation

To play the game, follow these steps:

  1. Clone the repository:
git clone https://github.com/your_username/casino-number-guessing-game.git
  1. Navigate to the project directory:
cd casino-number-guessing-game
  1. Compile the source code:
g++ -o game main.cpp
  1. Run the game:
./game

Usage

Once you run the game, follow the instructions on the screen to make guesses. Enter your guess when prompted, and the game will provide feedback until you guess the correct number.

Screenshot

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request. For major changes, please open an issue first to discuss your ideas.