27
EVIL HANGMAN TAIMOOR TAHIR HASSAN SAEED

Evil-Hangman

Embed Size (px)

Citation preview

EVILHANGMANTAIMOOR TAHIRHASSAN SAEED

How normal Hangman works. a b c d e f g h I j k l m n o p q r s t u v w x y z_ _ _ _ _

5 chances remaining.

How normal Hangman works. b c d e f g h I j k l m n o p q r s t u v w x y z_ _ _ _ _

a

4 chances remaining.

How normal Hangman works. b c d f g h I j k l m n o p q r s t u v w x y z_ _ _ _ _

a e

3 chances remaining.

How normal Hangman works. b c d f g h j k l m n o p q r s t u v w x y z_ _ i _ _

a e

i

3 chances remaining.

How normal Hangman works. b c d f g h j k l m n p q r s t u v w x y z_ _ i _ _

a e o

i

2 chances remaining.

How normal Hangman works. b c d f g h j k l m n p q r s t v w x y z_ _ i _ _

a e o u

i

1 chance remaining.

How normal Hangman works. b c d f g h j k l m n p q r s t v w x y zt _ i _ _

a e o u

i t

1 chance remaining.

How normal Hangman works. b c d f g j k l m n p q r s v w x y zt h i _ _

a e o u

i t h

1 chance remaining.

How normal Hangman works. b c d f g j k l m p q r s v w x y zt h i n _

a e o u

i t h n

1 chance remaining.

How normal Hangman works. b c d f g j k l m p q r s v w x y zt h i n g

a e o u

i t h n g

Job Done!

How Evil Hangman works. a b c d e f g h I j k l m n o p q r s t u v w x y z_ _ _ _ _

5 chances remaining.

How Evil Hangman works. b c d e f g h I j k l m n o p q r s t u v w x y z_ _ _ _ _

a

4 chances remaining.

How Evil Hangman works. b c d f g h I j k l m n o p q r s t u v w x y z_ _ _ _ _

a e

3 chances remaining.

How Evil Hangman works. b c d f g h j k l m n o p q r s t u v w x y z_ _ i _ _

a e

i

3 chances remaining.

How Evil Hangman works. b c d f g h j k l m n p q r s t u v w x y z_ _ i _ _

a e o

i

2 chances remaining.

How Evil Hangman works. b c d f g h j k l m n p q r s t v w x y z_ _ i _ _

a e o u

i

1 chance remaining.

How Evil Hangman works. b c d f g h j k l m n p q r s t v w x y zt _ i _ _

a e o u

i t

1 chance remaining.

How Evil Hangman works. b c d f g j k l m n p q r s v w x y zt h i _ _

a e o u

i t h

1 chance remaining.

How Evil Hangman works. b c d f g j k l m p q r s v w x y zt h i n _

a e o u

i t h n

1 chance remaining.

How Evil Hangman works. b c d f g j k l m p q r s v w x y zt h i n _

a e o u g

i t h n

You Lose!

The word was “think”.

Start

End

Select Difficulty

Enter Letter

Words inserted to linked list

1)Removal of Words from string 2)Entering of Words in display String

Wanna play again?

1)Display “Win” or “Lose” output2) Possible Words(If applicable) Game End?

YESNO

Test Runs

Test Runs

Backhand Working

Complexity Complexity of the program O(nkd)

Complexity for file handling O(N)

• n is number of words of specific length

• k is length of the word

• d is number of guesses

• N is number of words in dictionary

THANKS!