I am trying to design a hangman game but I'm having an issue with trying to get to the next step from where I am.
So far I am able to generate random words, get the program to chose a word from this random list so the user can try to guess its letters.
I can also tell the user how many letters there are in the word. I've also used a for loop to display several _ (underscores) in accordance with the amount of letters in the word.
However all I've done is outputted underscores. I don't know how I'll be able to unmask these underscores so that if the user guesses the right letter then the _ will change into the correct letter in the word.
At the moment I'm just able to tell the user that the letter they have entered does indeed exist in the word.