Skip to content

A simple Hangman game implemented in Python. This game allows players to guess letters or entire words, choose difficulty levels, and use hints to reveal letters.

Notifications You must be signed in to change notification settings

Helldashee/hangman-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game

A simple Hangman game implemented in Python. This game allows players to guess letters or entire words, choose difficulty levels, and use hints to reveal letters.

Features:

Difficulty Levels: Choose from three difficulty levels (1, 2, 3).

Word Guessing: Guess letters or the entire word.

Hint System: Get up to three hints revealing letters.

Hangman Visualization: See a visual representation of your progress.

Invalid Input Handling: Prevents invalid entries like numbers or repeated guesses.

Win/Loss Conditions: Win by guessing the word correctly or lose when reaching the max mistakes.

Installation

Clone this repository:

git clone https://github.com/yourusername/hangman-game.git

Navigate to the project directory:

cd hangman-game

Run the script:

python main.py

Usage

Choose a difficulty level (1, 2, or 3).

Optionally, use hints to reveal letters (up to 3 hints available).

Choose whether to guess a letter or the entire word.

If guessing a letter, enter a single letter; if guessing a word, enter the full word.

The game ends when you either guess the word correctly or exceed the allowed mistakes.

Enjoy and try again if you lose!

Controls

Enter a letter: Guess a letter in the word.

Enter a word: Guess the whole word.

Use a hint: Reveal a letter (if hints are available).

Win Condition: All letters are correctly guessed.

Lose Condition: Maximum mistakes are reached.

About

A simple Hangman game implemented in Python. This game allows players to guess letters or entire words, choose difficulty levels, and use hints to reveal letters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages