Skip to content

Guess the Number is a console-based game written in C where the player tries to guess a randomly generated secret number. It features multiple difficulty levels and a customizable range option.

License

Notifications You must be signed in to change notification settings

Sandra1me/C-Guess-the-Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Guess the Number (C)

Guess the Number is a console-based game written in C where the player tries to guess a randomly generated secret number. It features multiple difficulty levels and a customizable range option.

Gameplay

When you start the program, you can choose from 4 difficulty levels:

  • Easy: Number between 1 and 10.
  • Medium: Number between 1 and 50, with intermediate hints.
  • Hard: Number between 1 and 100, with more precise and challenging hints.
  • Custom Range: You define the minimum and maximum values for the guessing range.

After correctly guessing the number, the game will display how many attempts it took and ask if you'd like to play again.

Compilation

You can compile the program using gcc:

gcc guessTheNumber.c -o guessTheNumber

And run it with:

./guessTheNumber
gameplay in hard mode

Contributing

This is a personal learning project, but contributions, suggestions, and improvements are welcome!

License

This project is licensed under the MIT Licence.

About

Guess the Number is a console-based game written in C where the player tries to guess a randomly generated secret number. It features multiple difficulty levels and a customizable range option.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages