Hangman Game

Welcome to the Hangman Game page.

This page contains a brief description and implementation instructions for the project.

Project Description

The classic word-guessing game. The program randomly selects a secret word (from a list) and the player guesses one letter at a time. Correct guesses reveal letters in the word; incorrect guesses add to a hangman drawing. The player wins by guessing all letters before running out of attempts.

Project Requirements

Python 3.x (built-in random module for word selection).

How to Run the Project

  1. Create a script (e.g. hangman.py) that reads a word list or hardcodes words. Use random.choice() to pick a secret word.
  2. Run it: python hangman.py. The game will print blanks for letters and prompt the user for a letter each turn.
  3. Continue until the word is guessed or the maximum misses (e.g. 6) is reached.

Key Concepts Learned

Possible Extensions

Troubleshooting & Debugging

See Troubleshooting & Debugging.

← Back to Python Programming Page