|
@ -18,6 +18,7 @@ void add_guessed_letter(char* guessed_letters, char guessed_letter); |
|
|
char eingabe_buchstabe(); |
|
|
char eingabe_buchstabe(); |
|
|
void lade_secret_word(char* secret_word, int level, char* path); |
|
|
void lade_secret_word(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]); |
|
|
|
|
|
|
|
|
void protokoll(){ |
|
|
void protokoll(){ |
|
|
clear_screen(); |
|
|
clear_screen(); |
|
@ -306,3 +307,12 @@ void show_letters(char secret_word[100], char guessed_letters[100]){ |
|
|
} |
|
|
} |
|
|
printf("\n"); |
|
|
printf("\n"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int letter_in_secret_word(char guessed_letter, char secret_word[100]){ |
|
|
|
|
|
for(int i = 0; i < strlen(secret_word); i++){ |
|
|
|
|
|
if(guessed_letter == secret_word[i]){ |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return 1; |
|
|
|
|
|
} |