This is a simple guessing game, taken from the book "The Rust Programming Language" https://doc.rust-lang.org/book/title-page.html, to learn the language trying and practicing common Rust concepts.
is a command line game. The program generates a random integer between 1 and 100. It will ask the player to guess. Then the program will indicate whether the guess is too low or tool high. If the guess is correct, the game will print a congratulations message and exit.
Prerequisites
Before you begin, follow the Rust installation guide from https://doc.rust-lang.org/book/ch01-01-installation.html.
Installing
To install clone the project repo:
HTTPS:
https://github.com/CMIW/Rust-Guessing-Game.git
SSH:
git@github.com:CMIW/Rust-Guessing-Game.git
GitHub CLI:
gh repo clone CMIW/Rust-Guessing-Game
Using
To use , follow these steps:
-
In a terminal move to the project folder named "Rust-Guessing-Game"
-
Run the following command
cargo run
- Enjoy the game.