I’m trying to make a hangman program that starts with dashes, maybe some letters already showing, and you type in guess’. After each guess the “dashes” refresh and the missed letters refresh until you exceed 7 guesses or complete the word.
My logic so far is:
Print “You will have 7 chances to guess” //head, body, two legs, two arms, face
Print _ _ _ _ _ _! //for now there will only be one option
Print “Choose a Letter” input from the keyboard
If correct print _ _ _E _ _! For each option and save
If incorrect add letter to Missed: A F G
If word is filled out, print “Congrats”
If # of guess exceeds 7 print “Try again” and quit.
I think this would be the right logic for a super simple hangman game…I think I can work everything out but I’m having trouble with step 4 where the program knows you picked a letter, places it and saves it for the next guess. Any advice or guidance would be greatly appreciated, thanks