Divivination game
This is a simple divination game written in C. The player's objective is to guess a random number generated by computer.
Game features
- The game is implemented in C and utilizes concepts such as
switch
,if
,for
, type casting, and input/output operations. - The player has a limited numbers of attempts to guess the correct number.
- The game give feedback to player, indicating whether the guessed number is higher or lower than the target number.
- Points are awarded to the player based on the number of attempts and the accuracy of their guesses.
How to run the game
- Make sure you have a C compiler installed on your system.
- Clone the project to a directory of your choice.
- Open a terminal and navigate to the directory where the project is located.
- Compile the game source code using the following command:
gcc divination.c -o divination
- Run the game:
./divination
- Follow the instructions displayed in the terminal to play the game.
Feel free to contribute to the project and help improve the code.