← 全部工具

amirhosseinmohtashami179-sudo/git.project.seven

热度 70 更新于 开发与构建

A Python implementation of the classic Hangman word-guessing game featuring a dynamic fruit list, live tracking, and interactive CLI gameplay.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

Python Hangman Game 🍎

A classic and interactive command-line Hangman game built in Python. The program picks a random fruit from a diverse list, displays a placeholder for the secret word, and challenges the player to guess it letter by letter while managing their remaining lives.

---

Features

  • Dynamic Word Bank: Randomly selects a fruit name from an extensive list of fruits using Python's random module.
  • Live Visual Feedback: Displays correct guesses in place of blanks and updates a visual heart-based life counter (❤️ and 🖤) after every turn.
  • Progress Tracking: Keeps track of correctly guessed letters to gradually reveal the hidden word[cite: 4].
  • Win/Lose Conditions: Ends the game with a success or failure message depending on whether the player guesses the word before running out of lives[cite: 4].

---

How to Run

  • Ensure Python 3.x is installed on your system.
  • Download or copy the script file (project7.py).
  • Open your terminal or command prompt and run the script:
   python project7.py