diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 6704dee..df569e2 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -23,11 +23,23 @@ void hangman() do { char guessWord[30]; + char displayWord[30]; int length; strcpy(guessWord,wordlist[rand() % 10]); length = strlen(guessWord); printf("%s %d\n",guessWord, length); - + for (int i = 0; i <= length; i++) + { + if(i