Skip to content

This Python script features a classic Hangman game. Players attempt to guess a word by inputting letters. The game randomly selects a word from a list and displays it as underscores. Correct guesses reveal letters; incorrect guesses reduce chances. Can you solve the word before running out of attempts?

Notifications You must be signed in to change notification settings

SaiSriramKamineni/HangManGame-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hangman Game 🎮

Overview ℹ️

  • Hangman is a classic guessing game where the player tries to guess a word by suggesting letters. For each letter that is not in the word, the game draws a part of a hangman's gallows. The game continues until the player guesses the word or the gallows is complete and the player is hanged.

How to Play 🕹️

  1. Setup:
  • Clone the repository to your local machine.
  • Make sure you have Python installed.
  • Open the terminal and navigate to the directory where you cloned the repository.
  1. Run the Game:
  • Open your terminal or command prompt.
  • Navigate to the directory where you cloned the repository.
  • Run the game by executing python hangman.py.
  1. Game Rules:
  • You have a limited number of chances (6 by default) to guess the word.
  • Each turn, guess a letter. If the letter is in the word, it will be revealed; otherwise, you lose a chance.
  • The game ends when you correctly guess the word or run out of chances.

Features ✨

  • Random selection of words from a predefined list.
  • Visual representation of the hangman as chances decrease.
  • Option to play multiple rounds consecutively.

Additional Notes 📝

  • The game is implemented in Python and runs in any terminal or command prompt environment.
  • Feel free to modify the word list ('words') or adjust game settings in the source code.

Contributing 🤝

Feel free to fork the repository and contribute to the project. If you have any suggestions or find bugs, please open an issue or submit a pull request.

Technical Details

  • The game is implemented in Python 3.x.
  • The game uses a list of predefined words, which can be easily extended or modified.
  • The game uses a simple text-based interface and does not require any additional libraries or dependencies.

Outputs

Screenshot 2024-06-27 104413

Screenshot 2024-06-27 104436

Screenshot 2024-06-27 104454

Screenshot 2024-06-27 104857

Screenshot 2024-06-27 104919

License

  • This project is licensed under the MIT License - see the LICENSE file for details. MIT

"# HangManGame-Python" "# HangManGame-Python" "# HangManGame-Python"

About

This Python script features a classic Hangman game. Players attempt to guess a word by inputting letters. The game randomly selects a word from a list and displays it as underscores. Correct guesses reveal letters; incorrect guesses reduce chances. Can you solve the word before running out of attempts?

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages