|
@ -15,6 +15,7 @@ void nameAusgeben(); |
|
|
void levelauswahl(); |
|
|
void levelauswahl(); |
|
|
void hauptSpiel(int level); |
|
|
void hauptSpiel(int level); |
|
|
void draw_hangman(int attempts); |
|
|
void draw_hangman(int attempts); |
|
|
|
|
|
void add_guessed_letter(char* guessed_letters, char guessed_letter); |
|
|
|
|
|
|
|
|
void protokoll(){ |
|
|
void protokoll(){ |
|
|
clear_screen(); |
|
|
clear_screen(); |
|
@ -250,3 +251,11 @@ void draw_hangman(int attempts) { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void add_guessed_letter(char* guessed_letters, char guessed_letter){ |
|
|
|
|
|
for (int i = 0; i < strlen(guessed_letters); i++){ |
|
|
|
|
|
if (guessed_letters[i] == guessed_letter){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |