Browse Source

refactoring: Umbenennen der formalen Parameter von wordGuessed() zu verständlicheren Namen

remotes/origin/tim
fdai7727 11 months ago
parent
commit
64247b0c52
  1. 6
      src/main/c/Tim/hangman.c

6
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; return true;
} }
else else

Loading…
Cancel
Save