Skip to content

Add Python Hangman Game#77

Open
ShristiC7 wants to merge 1 commit intoA-K-0:mainfrom
ShristiC7:main
Open

Add Python Hangman Game#77
ShristiC7 wants to merge 1 commit intoA-K-0:mainfrom
ShristiC7:main

Conversation

@ShristiC7
Copy link

✨ Pull Request: Add Python Console Hangman Game

🧩 Overview

This PR introduces a complete Python-based console version of the Hangman Game, built as part of Hacktoberfest 2025.
The project showcases clean, modular architecture and engaging command-line gameplay — making it both educational and entertaining for new contributors.


🎮 Features Added

  • 🎯 Random Word Generator: Dynamically selects words from a predefined word bank.
  • 🧠 Difficulty Levels: Easy / Medium / Hard modes control the number of lives.
  • 🧱 Modular File Structure:
    • main.py – Core game logic and entry point
    • words.py – Editable list of words
    • hangman_art.py – ASCII art for hangman stages
    • README.md – Game documentation and setup guide
  • Input Validation: Accepts only valid alphabetical characters.
  • 💬 Dynamic Feedback: Displays real-time progress, lives, and guessed letters.
  • 🔁 Replay Option: Allows multiple game sessions in a single run.

⚙️ Tech Stack

Component Technology
Language Python 3.x
Dependencies None (Standard Library only)
Interface Console / Terminal

🧠 Objective

To provide a beginner-friendly, fully functional CLI game that demonstrates:

  • Logical control flow and string manipulation
  • Modular Python design principles
  • Engaging terminal-based interaction

🧾 Usage

Run the following commands to play the game:

cd hangman
python3 main.py

🧱 File Structure

hangman/
├── main.py
├── words.py
├── hangman_art.py
└── README.md

🏆 Hacktoberfest Tag

This contribution is made for Hacktoberfest 2025 🎃
Please label this PR with the following tags:

#hacktoberfest
#hacktoberfest-accepted


Gratitude to the maintainers for reviewing this PR and supporting community contributions.
This game was built to encourage hands-on learning and collaborative open-source development.

"One wrong guess closer to the end… or one right letter away from victory."
( Solves issue #69 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant