- Six mistakes are allowed
- Restart and exit by pressing
1
and0
, respectively - Dictionary of 1500+ English words, obtained from this site using my own python parser
- I tried to make the user interface as friendly and intuitive as possible (a little bit of kaomoji)
Clone the project
git clone https://github.com/krios2146/hangman.git
Go to the project directory
cd hangamn
Make sure you have installed Rust & Cargo - https://www.rust-lang.org/tools/install
rustc --version
cargo --version
Compile and run the program with Cargo
cargo run
It's my first Rust project, and I've never used it before. I wrote it immediately after reading the second chapter of The Rust Programming Language Book. I don't really get the "borrow" system, and the error handling is a little bit strange for me, but I enjoyed writing this project in Rust.
- Infinite game mode
- Colorful output for mistake and success guesses
- Difficulty levels based on word length