An open API service indexing awesome lists of open source software.

https://github.com/yanbrasiliano/hangman-game

Developing a Hangman game in Python. This project involves creating a classic word-guessing game where players attempt to guess a hidden word one letter at a time. It serves as an educational exercise to practice Python programming concepts such as loops, conditionals, and string manipulation.
https://github.com/yanbrasiliano/hangman-game

hangman-game python python3

Last synced: 8 months ago
JSON representation

Developing a Hangman game in Python. This project involves creating a classic word-guessing game where players attempt to guess a hidden word one letter at a time. It serves as an educational exercise to practice Python programming concepts such as loops, conditionals, and string manipulation.

Awesome Lists containing this project

README

          

The Hangman Game 🎲


A Python script that simulates the classic Hangman game. The rules of the game can be found online.

## Overview

This project implements the Hangman game, where players guess letters to uncover a hidden word. The game ends either when the word is correctly guessed or the player fails to guess the word within 6 attempts.

## How to Play

1. The game will prompt you to guess letters one at a time.
2. You have 6 attempts to guess the word correctly.
3. Each incorrect guess results in a part of the hangman figure being drawn.
4. The game ends when you either guess the word correctly or exhaust all 6 attempts.

![Hangman Game](https://user-images.githubusercontent.com/72168914/114645741-65bd1600-9cb0-11eb-9d2c-5350f28d4c30.png)

## Requirements

- Python 3.x

## How to Run

1. Clone the repository:

```bash
git clone git@github.com:yourusername/hangman-game.git
```

2. Navigate to the project directory:

```bash
cd hangman-game
```

3. Run the script:

```bash
python hangman.py
```

## Contributing

Contributions are welcome! Feel free to open issues and submit pull requests to improve this project.

## License

This project is licensed under the MIT License.