Skip to content

Giorgos-Arg/evil-hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

evil-hangman

This program implements the Evil Hangman game.

Usage

Compilation

make -C ./src

Run

./src/evilHangman <word_file>

Where <word_file> is a text file containing the word length at the top of the file and then a list words with the same length.

Example

./src/evilHangman data/length3.txt

***********************************************************
***             Welcome to (Evil) Hangman               ***
                        ________
                        |/      |
                        |      (_)
                        |      \|/
                        |       |
                        |      / \
                        |
                        |
***     You are going to play against the computer      ***
***********************************************************


Type the number of total guesses: 3


----------------------
Words possible: 1294
Progress: _ _ _
Number of Guesses: 3
----------------------

Guess a letter:a
a is not in the word!


----------------------
Words possible: 867
Progress: _ _ _
Number of Guesses: 2
----------------------

Guess a letter:o
o is not in the word!


----------------------
Words possible: 579
Progress: _ _ _
Number of Guesses: 1
----------------------

Guess a letter:e
e is not in the word!

**************************************************
You run out of guesses. You lost!
The secret word is: nit

Author

Giorgos Argyrides (g.aryrides@outlook.com)

About

Evil Hangman game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published