Guessing game is a simple game made to learn rust.
- System generates a random number between [x-y].
Vars
x, y
can be configured. Defaultx=0, y=10
. - User gets
5
chance to pridict this number - If predicted correctly, user's score gets incremented
For linux, you can find a compiled executable at /target/release/guessing_game
.
For windows, you can build it from source.
git clone https://github.com/prakashpandey/guessing-game
cd guessing-game
./target/release/guessing_game
You can also add guessing_game
to bashrc.
git clone https://github.com/prakashpandey/guessing-game
cd guessing-game
cargo build --release