This is a simple implementation of the classic Hangman game in Rust. The game allows players to guess letters to uncover a hidden word before they run out of attempts.
- Word Selection: Randomly selects a word from a predefined list.
- Guessing Mechanism: Players can guess letters to reveal the hidden word.
- Visual Feedback: Displays the current state of the hangman and the guessed letters.
- Win/Loss Condition: Recognizes when the player wins by guessing the word correctly or loses by running out of attempts.
- Rust programming language (version 1.75.0)
- Cargo build system
Clone the repository:
git clone https://github.com/your_username/hangman-rust.gitNavigate into the project directory:
cd hangman-rustBuild the project:
cargo build --releaseRun the executable after building:
cargo run --releaseFollow the prompts to play the game. Guess letters to uncover the hidden word within the allowed attempts.