A guessing game written in Rust
Created following the official Rust Programming Language Book's Programming a Guessing Game section.
Here’s how it works: the program will generate a random integer between 1 and 100. It will then prompt the player to enter a guess. After a guess is entered, the program will indicate whether the guess is too low or too high. If the guess is correct, the game will print a congratulatory message and exit.
Make sure you have Rust installed on your machine.
To run the project, execute the following command:
cargo run
After running the project, you will see the following message:
Guess the number!
Please input your guess.
This is a brief example of my project.