Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b3ta-blocker/hangman
This Python code implements a simple Hangman game. It selects a random word from a list, allows the player to guess letters, and displays the current state of the word with underscores for unknown letters.
https://github.com/b3ta-blocker/hangman
boolean-variables-and-operators conditional-statements list-manipulation lists loops module-import random-number-generators string-formatting user-input
Last synced: 20 days ago
JSON representation
This Python code implements a simple Hangman game. It selects a random word from a list, allows the player to guess letters, and displays the current state of the word with underscores for unknown letters.
- Host: GitHub
- URL: https://github.com/b3ta-blocker/hangman
- Owner: B3TA-BLOCKER
- Created: 2023-11-06T15:50:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-17T00:21:56.000Z (10 months ago)
- Last Synced: 2024-03-18T01:50:05.327Z (10 months ago)
- Topics: boolean-variables-and-operators, conditional-statements, list-manipulation, lists, loops, module-import, random-number-generators, string-formatting, user-input
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Hangman Game 🪓**
Hangman Game is a classic word guessing game implemented in Python. Guess the letters of a randomly chosen word and avoid running out of lives. Enjoy the challenge of uncovering the hidden word with interactive hangman stages.
## **Features 🌟**
- Randomly selects a word from a predefined list of challenging words.
- Visual feedback with interactive hangman stages for incorrect guesses.
- Clear console screen for an enhanced user experience.
- Simple and intuitive gameplay.## **How to Play 🎲**
1. Clone the repository to your local machine:
```bash
git clone https://github.com/B3TA-BLOCKER/Hangman.git
```
3. Navigate to the project directory:
```bash
cd Hangman
```5. Run the game:
```bash
python main.py
```## **Dependencies 📦**
The game uses the following files:
- main.py: The main Python script for the Hangman game.
- art.py: Contains ASCII art for different hangman stages and the game logo.
- words.py: Provides a list of words for the game.