Skip to content

elloot/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

How the game works

Picking a word

A word that will be guessed is picked by either a computer or a person. This word is represented by a row of dashes, each dash representing a letter of the word.

Guessing

If the guesser guesses a letter that is part of the chosen word, the other player writes in the letter in all its correct positions in the word. If the suggested letter is wrong, the other player draws one part of a hanged man stick figure as a tally mark. If the game is played against a computer, these actions are carried out by said computer. The guesser may at any time attempt to guess the entire word. If the guesser is wrong, a tally mark is added.

Winning/losing

Winning or losing the game is based on whether or not the word is guessed correctly before the hanged man stick figure is fully drawn. The guesser can win the game by guessing each letter of the word correctly, or by guessing the whole word correctly. Should the guesser not manage to guess the word before the hanged man stick figure is complete, the guesser has lost.

Gamemodes

Hangman can be played against a computer or against a friend. When playing against a computer, a word is picked randomly from a list and the player is then allowed to guess letters in the word until they get it right or run out of guesses. Playing against a friend works the same as playing against a computer except that either you or your friend can input a word of your own to guess.

Flowchart

Trello board

About

A hangman game played through the console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages