"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.".
The description above and the code was taken from: Official Rust Programming Language Book
Rust: modern systems programming language known for its strong emphasis on memory safety and zero-cost abstractions.
Cargo: Rust's package manager and build tool, streamlining the process of managing dependencies and building projects with ease.
- use std::io;
- use std::cmp::Ordering;
- use rand::Rng;
Clone the repository on your machine git clone [this-repo-url]
Go into the repository and run the project cargo run