diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 8719211..64e6ccb 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -149,11 +149,11 @@ char* getWordFromList(int x) } } -bool wordGuessed(char x[], char y[]) +bool wordGuessed(char guessWord[], char displayWord[]) { - if(strcmp(x,y) == 0) + if(strcmp(guessWord, displayWord) == 0) { - printf("Du hast gewonnen!\nDas gesuchte Wort war \"%s\"\n\n",x); + printf("Du hast gewonnen!\nDas gesuchte Wort war \"%s\"\n\n",guessWord); return true; } else