Skip to content

trytryty1/hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game in Rust

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.

Features

  • 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.

Requirements

  • Rust programming language (version 1.75.0)
  • Cargo build system

Installation

Clone the repository:

git clone https://github.com/your_username/hangman-rust.git

Navigate into the project directory:

cd hangman-rust

Build the project:

cargo build --release

Usage

Run the executable after building:

cargo run --release

Follow the prompts to play the game. Guess letters to uncover the hidden word within the allowed attempts.

About

A simple hangman game programmed in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages