Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.01 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.01 KB

Hangman

My first program written in Rust.

Rules

  • You get 10 lives.
  • You will be shown a blanked out word and asked to guess a letter from the word.
  • If your guess is incorrect, you lose a life.
  • If your lives hit 0, you lose the game.
  • If you guess all the letters in the word, you win the game.

Playing the game

Prerequisites

  • Rust

Running the game

Ratatui game runner (default)
cargo run

ratatui_default_ui.png

ratatui_in_progress_ui.png

ratatui_complete_ui.png

Stdio game runner (original)

cargo run --no-default-features --features "stdio_game_runner"

stdio_ui.png

Using a custom word list

You can replace the words list with a custom words list.

Note: you will need to rebuild the game to see this take effect.

Example lists