Skip to content

You have to guess the chosen word, each of your mistakes will add to the formation of the figure of the hang man. If the figure of the hang man is completely formed, that means you guessed 6 letters wrong, so game is over, but if you managed to guess the word before it - you win πŸ…

Notifications You must be signed in to change notification settings

shirabiton/hang-man-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hangman Game

Overview

The figure of the hanging man is drawn with simple keyboard symbols in code, like this:

  +---+
  |   |
  O   |
 /|\  |
 / \  |
      |
=========

At this point, you can only play on the project's console.

Game Rules

The aim of the game is to guess the chosen word, the game will display a series of spaces that represent the hidden word.
At each step, the user will guess a letter that exists in the word,
if the letter appears in the selected word - the letter will be revealed in all the places where it appears in the word.
Whereas, if the letter is wrong - the figure of the hanged man will begin to form, and the wrong letter will be written on the side.
The game ends when the figure of the hanged man is revealed - a total of 6 wrong guesses.
But if you managed to guess the word before - you won πŸ…

Use Of Technologies

  • Python language.

Installation

First clone the file to your local computer by the following command in the command line of the desired folder:

git clone https://github.com/shirabiton/hang-man-game.git

Run the file main.py, and start the game 🏁

So what does it actually look like?

hang man game hang man game hang man game hang man game

About

You have to guess the chosen word, each of your mistakes will add to the formation of the figure of the hang man. If the figure of the hang man is completely formed, that means you guessed 6 letters wrong, so game is over, but if you managed to guess the word before it - you win πŸ…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages