diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 64e6ccb..040a085 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -162,20 +162,20 @@ bool wordGuessed(char guessWord[], char displayWord[]) } } -bool letterGuessed(char x, char y[], int length) +bool letterGuessed(char selectedLetter, char guessWord[], int length) { int counter = 0; for(int i = 0; i0) { - printf("Dein gewaehlter Buchstabe %c war ein Treffer!\n", x); + printf("Dein gewaehlter Buchstabe %c war ein Treffer!\n", selectedLetter); return true; } else