|
@ -227,16 +227,16 @@ void changeLetter(char selectedLetter, char guessWord[], int length, char ptrDis |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void drawHangman(int x) |
|
|
|
|
|
|
|
|
void drawHangman(int wrongGuessCount) |
|
|
{ |
|
|
{ |
|
|
printf("%s", hangmanStages[x]); |
|
|
|
|
|
|
|
|
printf("%s", hangmanStages[wrongGuessCount]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool noTrysLeft(int x, char y[]) |
|
|
|
|
|
|
|
|
bool noTrysLeft(int wrongGuessCount, char guessWord[]) |
|
|
{ |
|
|
{ |
|
|
if(x >= POSSIBLE_TRYS) |
|
|
|
|
|
|
|
|
if(wrongGuessCount >= POSSIBLE_TRYS) |
|
|
{ |
|
|
{ |
|
|
printf("Du hast verloren!\n\nDas gesuchte Wort war \"%s\"\n\n",y); |
|
|
|
|
|
|
|
|
printf("Du hast verloren!\n\nDas gesuchte Wort war \"%s\"\n\n", guessWord); |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|