Skip to content

Classic Guessing Game Implemented in C++ using the Embarcadero compiler

Notifications You must be signed in to change notification settings

imDhiraj/Finding-the-Number-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Number Guessing Game

Description:

This repository contains two versions of a classic guessing game implemented in C++ using the Embarcadero compiler:

  1. Original Version: Your initial implementation of the guessing game, reflecting your unique approach.
  2. Enhanced Version: A version based on lecture materials, featuring an upgraded UI with number guessing hints (higher or lower).

How to Play:

This game is designed for two players. Here's how it works:

  1. Player 1: Chooses a secret number to be guessed (within a specified range).
  2. Player 2: Takes turns guessing the number.
  3. After each guess, the game provides feedback to Player 2:
    • If the guess is higher than the secret number, a message like "Too high!" is displayed.
    • If the guess is lower than the secret number, a message like "Too low!" is displayed.
    • (For Enhanced Version only) The game also indicates how close Player 2 is getting with a message like "Getting warmer!" or "Getting colder!" (optional).
  4. Player 2 continues guessing until they correctly identify the secret number.
  5. The game displays the total number of guesses it took Player 2 to find the number.

Building the Project:

Prerequisites:

  • Embarcadero C++ compiler (version details can be specified here)

Steps:

  1. Clone this repository to your local machine.
  2. Open the project in your Embarcadero IDE (e.g., C++Builder).
  3. Configure project settings if necessary (e.g., build options, output directory).
  4. Build the project.

Running the Game:

  1. Double-click the executable file generated by the build process.
  2. The program will prompt Player 1 to enter the secret number.
  3. The game will then guide Player 2 through the guessing rounds.

Versions:

  • original (Your original code)
  • enhanced (Lecture-based version with improved UI)

Installation

  1. Clone the Repository:
    git clone https://github.com/[your-username]/[your-repository-name].git
  2. Open the Project:
    • Launch Embarcadero C++ Builder.
    • Open the .cbproj project file.
  3. Build and Run:
    • Build the project to compile the source code.
    • Run the executable to start the application.

Screenshots

Original Version Screenshot

Main Image

Main Screen to Guess the Number

Other Images

1st Guess 2nd Guess Founded The Number
image image image

Enhanced Version Screenshot

Main Image

Main Screen to Guess the Number

Other Images

1st Guess 2nd Guess Founded The Number
image image image

About

Classic Guessing Game Implemented in C++ using the Embarcadero compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published