Hello! i'm only a beginner in programming and only have a few idea about creating a program. We have an assignment to create a hangman:
Write a program that plays the game of Hangman. The program should pick a word(which is coded directly into the program) and display the following:
Guess the word: xxxxxx
Each x represents a letter. The user tries to guess the letters in word. The appropriate response yes or no should be displayed after each guess. After seven incorrect guesses, the user should be hanged. The display should look as follows:
O
/ l \
l
/ \
After each guess, display all user guesses. If the user guesses the word correctly, the program should display
Congratulations!!! You guessed my word. Play again? yes/no