Skip to content

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.

Notifications You must be signed in to change notification settings

B3TA-BLOCKER/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/B3TA-BLOCKER/Hangman.git
  2. Navigate to the project directory:

    cd Hangman
  3. Run the game:

    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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages