My first project was written in the Rust programming language
To run this project, Rust must be installed first (follow Installation Rust). Then, run code below to build
and run
$ cargo build
$ cargo run
Or just download the compiled program from here guessing-game-v0.1.0-apha and run it
$ ./guessing-game-v0.1.0-alpha
Have fun 😊
This is an easy game, you just need to guess a number and see the results from the program. If the program prompts Too small!
, you should bet on a higher number, whereas when the program prompts Too big!
, you should guess a smaller number. The program will prompt You win!
when you guess the secret number correctly 🥳
This project was reimplement by me according to Chapter 2 in The Rust Book