|
@ -15,6 +15,7 @@ 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 add_guessed_letter(char* guessed_letters, char guessed_letter); |
|
|
|
|
|
char eingabe_buchstabe(); |
|
|
|
|
|
|
|
|
void protokoll(){ |
|
|
void protokoll(){ |
|
|
clear_screen(); |
|
|
clear_screen(); |
|
@ -259,4 +260,11 @@ void add_guessed_letter(char* guessed_letters, char guessed_letter){ |
|
|
} |
|
|
} |
|
|
guessed_letters[strlen(guessed_letters)] = guessed_letter; |
|
|
guessed_letters[strlen(guessed_letters)] = guessed_letter; |
|
|
guessed_letters[strlen(guessed_letters) + 1] = '\0'; |
|
|
guessed_letters[strlen(guessed_letters) + 1] = '\0'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
char eingabe_buchstabe(){ |
|
|
|
|
|
char guess; |
|
|
|
|
|
scanf(" %c", &guess); |
|
|
|
|
|
guess = tolower(guess); |
|
|
|
|
|
return guess; |
|
|
} |
|
|
} |