Skip to content

theharshkwatra/Hangman_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hangman_Game

This is a simple Hangman game implemented in Python. The game randomly selects a word from a list of words and allows the player to guess the letters in the word. The game provides visual feedback using hangman stages, showing the player's progress and how many tries are left.

How to Play

The game randomly selects a word from the words.txt file. The player guesses letters one by one. If the guessed letter is in the word, it is revealed in the correct positions. If the guessed letter is not in the word, a part of the hangman is drawn. The player has a limited number of tries (6 by default) to guess the word. The game ends when the player guesses the word correctly or runs out of tries.

Files

hangman.py: The main script to run the Hangman game. words.txt: A text file containing a list of words for the game. stages.txt: A text file containing the hangman stages, separated by ###.

Requirements

Python 3.x

Setup

Clone the repository or download the files.

Ensure you have Python 3.x installed on your system.

Run the hangman.py script to start the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published