Hangman
I'm using scanf to get a character entered by the user (guessed letter), but it seems like scanf gets all the letters entered
char guessed_letter;
printf("\n");
scanf(" %c", &guessed_letter);
if the word is moon
if the user entered moo this happens
m _ _ _
m o _ _
m o o _
but what I'm expecting is to read only the first one.
m _ _ _
this problem aslo occures when counting mistakes because it scans more than one charachter
I'm scanning for the letter in a do while loop, because I want the user to keep guessing