Skip to content

batmanrizz/hangman-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•น๏ธ Hangman Game

Welcome to the classic Hangman game, now with a fun twist! Guess the hidden word one letter at a time before the hangman is fully drawn. Can you save the day? ๐Ÿ•ต๏ธโ€โ™‚๏ธ


โœจ Features

  • ๐ŸŽฒ Random word selection
  • โœ… Tracks correct and incorrect guesses
  • ๐Ÿ–ผ๏ธ ASCII art hangman visual
  • ๐Ÿ“ Simple and clean terminal interface

๐Ÿš€ Getting Started

Prerequisites

  • Python 3.x ๐Ÿ

Installation

  1. Clone this repository:

    git clone https://github.com/batmanrizz/hangman-game.git
    cd hangman-game
  2. (Optional) Setup a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate

Running the Game

python hangman.py

๐ŸŽฎ How to Play

  • The game selects a random word. Your goal is to guess it, one letter at a time.
  • Each wrong guess draws another part of the hangman. You lose if the drawing is completed! ๐Ÿ˜ฑ
  • Win by revealing the word before your guesses run out.

๐Ÿ“ Example

Welcome to Hangman! ๐Ÿ•น๏ธ
_ _ _ _ _

Guess a letter: e
Correct! ๐ŸŽ‰

_ e _ _ _

Guess a letter: a
Wrong! โŒ You have 5 attempts left.

๐Ÿ› ๏ธ Customization

  • Add more words to words.txt or the list in hangman.py ๐Ÿ“š
  • Change the ASCII art for a new hangman look ๐ŸŽจ
  • Add hints, scoring, or even a GUI for extra fun!

๐Ÿค Contributing

Contributions are welcome! Fork, clone, and submit a pull request ๐Ÿ‘


๐Ÿ“„ License

This project is licensed under the MIT License.


Enjoy playing Hangman! ๐Ÿ•ต๏ธโ€โ™‚๏ธโœจ

About

A simple Hangman game implemented in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages