Classic guess a random number game. Walkthrough provided by Chapter 2 of the Rust documentation book.
-
Make sure you have Rust installed.
-
Clone this repository
https://github.com/tannerdolby/rust-guessing-game.git
- Open command line or terminal and run:
cargo check
- This command quickly checks your code to make sure it compiles but doesn’t produce an executable.
- Run and play
cargo run
Feel free to edit the secret_number
variable within /src/main.rs
to increase the random number range.