Skip to content

My first project in C language wherein I used only if else statements to make the whole game work.

Notifications You must be signed in to change notification settings

CoderAmbar/Number-Guess-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Number Guessing Game in C

Overview

This project is a simple number guessing game implemented in C. The program generates a random number between 1 and 100, and the user must guess the number. The game provides feedback on how close the guess is and tracks the number of attempts until the correct guess is made.

Features

  • The machine randomly generates a number between 1 and 100.
  • The player inputs their guess.
  • The program provides hints if the guess is within 5 of the actual number, indicating whether the guess is higher or lower.
  • At the end of the game, the total number of attempts taken to guess the number correctly is displayed.

Requirements

  • C Compiler (e.g., GCC)
  • Basic understanding of how to compile and run C programs.

How to Compile and Run the Game

  1. Clone this repository to your local machine:
    git clone https://github.com/CoderAmbar/Number-Guess-Game.git

About

My first project in C language wherein I used only if else statements to make the whole game work.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages