Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
README.md
hangman_game.py

README.md

HANGMAN GAME

Picture

Description

This is my final project for CHEME5500

Hangman is a words guessing game for one player. The computer generates a word at random and the user has to suggest letters one by one. Every time the word contains a letter, the computer opens it to the user to see (all of them, if there are a few). Every time the word doesn't contain a letter, the computer gives a penalty point for the user. If there are seven penalty points, the user loses. If there are no hidden letters anymore, the computer loses.

For this Hangman the user has the option to type a word to be guessed by another user. Also in this version instead of a man being hung, you have a man floating with balloons. Each wrong guess makes a balloon pop, and eventually the man will fall to the ground.

Picture

Requirements

  • You must have python 2.7 to use this code.
  • You must have pygame on your machine. You can download and use pip to install pygame. Make sure to download and install the version compatible with Python 2.7 .

Usage

To use simply download the folder and then run

python hangman_game.py
You can’t perform that action at this time.