|
@ -16,7 +16,7 @@ void hauptSpiel(int level); |
|
|
void zeichne_galgen(int versuche); |
|
|
void zeichne_galgen(int versuche); |
|
|
void erratenen_buchstaben_hinzufuegen(char* guessed_letters, char guessed_letter); |
|
|
void erratenen_buchstaben_hinzufuegen(char* guessed_letters, char guessed_letter); |
|
|
char eingabe_buchstabe(); |
|
|
char eingabe_buchstabe(); |
|
|
void lade_secret_word(char* secret_word, int level, char* path); |
|
|
|
|
|
|
|
|
void hole_zu_erratendes_wort(char* secret_word, int level, char* path); |
|
|
void show_letters(char secret_word[100], char guessed_letters[100]); |
|
|
void show_letters(char secret_word[100], char guessed_letters[100]); |
|
|
int letter_in_secret_word(char guessed_letter, char secret_word[100]); |
|
|
int letter_in_secret_word(char guessed_letter, char secret_word[100]); |
|
|
int has_won(char secret_word[100], char guessed_letters[100]); |
|
|
int has_won(char secret_word[100], char guessed_letters[100]); |
|
@ -176,7 +176,7 @@ void hauptSpiel(int level){ |
|
|
int result; |
|
|
int result; |
|
|
int won = 0; |
|
|
int won = 0; |
|
|
|
|
|
|
|
|
lade_secret_word(secret_word, level, path); |
|
|
|
|
|
|
|
|
hole_zu_erratendes_wort(secret_word, level, path); |
|
|
|
|
|
|
|
|
while (versuche < 6 && won == 0) { |
|
|
while (versuche < 6 && won == 0) { |
|
|
zeichne_galgen(versuche); |
|
|
zeichne_galgen(versuche); |
|
@ -287,7 +287,7 @@ char eingabe_buchstabe(){ |
|
|
return guess; |
|
|
return guess; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lade_secret_word(char* secret_word, int level, char* path){ |
|
|
|
|
|
|
|
|
void hole_zu_erratendes_wort(char* secret_word, int level, char* path){ |
|
|
FILE *file = fopen(path, "r"); |
|
|
FILE *file = fopen(path, "r"); |
|
|
int count = 0; |
|
|
int count = 0; |
|
|
if ( file != NULL ) |
|
|
if ( file != NULL ) |
|
|