Skip to content

Abhixse/NumberGuessGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Number Guessing Game

Welcome to the Number Guessing Game! This is a simple console-based game written in C++ where the player has to guess a number between 1 and 100.

Game Rules

  • The computer thinks of a number between 1 and 100.
  • The player has a limited number of chances to guess the correct number.
  • The difficulty levels are:
    • Easy (10 chances)
    • Medium (5 chances)
    • Hard (3 chances)

How to Play

  1. After starting the game, the program will prompt you to choose a difficulty level.
  2. Based on your choice, you will have a specific number of chances to guess the correct number.
  3. After each guess, the program will provide hints:
    • If the guess is too high, it will tell you that the number is lower.
    • If the guess is too low, it will tell you that the number is higher.
  4. You win the game if you guess the correct number within the allowed number of attempts.

Features

  • Interactive gameplay with hints to guide the player.
  • Multiple difficulty levels to choose from.
  • Playable in the terminal or command line.

Getting Started

Prerequisites

  • C++ compiler (GCC, Clang, or similar) installed on your system.
  • A terminal or command line interface to run the game.

Installation and Running the Game

  1. Clone the repository to your local machine:
    git clone https://github.com/Abhixse/NumberGuessGame.git
    cd number-guessing-game
    https://roadmap.sh/projects/number-guessing-game
    
    
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages