Skip to content

rituramakrihnan/hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Hangman Game

Description

Hangman is a popular word-guessing game where one player thinks of a word and the other player tries to guess it by suggesting letters within a certain number of guesses. For each incorrect guess, a part of the hangman is drawn. The game continues until the word is guessed correctly or the hangman is complete.

Files

  1. main.py - Python script containing the implementation of the Hangman game.

Setup

  1. Download or clone the repository to your local machine.
  2. Make sure you have Python installed.
  3. Open a terminal or command prompt and navigate to the directory containing the files.

Usage

  1. Run the main.py script using the command python main.py.
  2. Follow the prompts on the screen to play the game.
  3. Guess letters one by one to uncover the hidden word.
  4. You have a limited number of guesses. Be careful not to use them all before guessing the word!

Gameplay

  • When you run the script, you will be prompted with a message indicating the number of letters in the word to be guessed and the number of incorrect guesses allowed.
  • You will see underscores representing each letter of the word to be guessed.
  • Enter a letter and press enter to see if it is in the word.
  • If the letter is correct, it will be revealed in the word.
  • If the letter is incorrect, part of the hangman will be drawn.
  • Continue guessing letters until you either guess the word correctly or run out of guesses.

Screenshot

Hangman Game Screenshot

Contributing

  • Contributions are welcome! If you have any suggestions or improvements for the game, feel free to fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Simple python program for hangman game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages