KR
krios2146/hangman
A simple hangman (word guessing) game with a console UI
Hangman game
Features
- Six mistakes are allowed
- Restart and exit by pressing
1and0, 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)
Run Locally
Clone the project
git clone https://github.com/krios2146/hangman.gitGo to the project directory
cd hangamnMake sure you have installed Rust & Cargo - https://www.rust-lang.org/tools/install
rustc --version
cargo --versionCompile and run the program with Cargo
cargo runLessons Learned
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.
Roadmap
- Infinite game mode
- Colorful output for mistake and success guesses
- Difficulty levels based on word length
On this page
Contributors
Created September 25, 2023
Updated October 8, 2023