A simple guessing game build with Rust base on the Rust official documentation book
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.
If you’re using Linux or macOS, open a terminal and enter the following command:
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
For Windows Installation check this guide
Clone the project
git clone https://github.com/bhantsi/guessing_game
Go to the project directory
cd guessing_game
Run the program
cargo run