Example code for hangman in c#? | Sololearn: Learn to code for FREE!


Example code for hangman in c#?

I donno

4/23/2017 8:25:05 PM

Berhec Alexandru

1 Answer

New Answer


I don't have the code, but think about it. With a break down of the game you can write the code without UI. Break down: * You need a list of words * choose a random word from the list * get a char as user input * check all index's of the word to see if it has the char. Display it accordingly, but if there is no char in the word then the user looses a life. * loop until all letters are found or user runs out of lifes * make sure the user cannot input the same char twice