|
@ -13,7 +13,7 @@ void startauswahl(); |
|
|
void nameAusgeben(); |
|
|
void nameAusgeben(); |
|
|
void levelauswahl(); |
|
|
void levelauswahl(); |
|
|
void hauptSpiel(int level); |
|
|
void hauptSpiel(int level); |
|
|
void draw_hangman(int versuche); |
|
|
|
|
|
|
|
|
void zeichne_galgen(int versuche); |
|
|
void add_guessed_letter(char* guessed_letters, char guessed_letter); |
|
|
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); |
|
@ -179,7 +179,7 @@ void hauptSpiel(int level){ |
|
|
lade_secret_word(secret_word, level, path); |
|
|
lade_secret_word(secret_word, level, path); |
|
|
|
|
|
|
|
|
while (versuche < 6 && won == 0) { |
|
|
while (versuche < 6 && won == 0) { |
|
|
draw_hangman(versuche); |
|
|
|
|
|
|
|
|
zeichne_galgen(versuche); |
|
|
show_letters(secret_word, guessed_letters); |
|
|
show_letters(secret_word, guessed_letters); |
|
|
guessed_letter = eingabe_buchstabe(); |
|
|
guessed_letter = eingabe_buchstabe(); |
|
|
result = letter_in_secret_word(guessed_letter, secret_word); |
|
|
result = letter_in_secret_word(guessed_letter, secret_word); |
|
@ -196,7 +196,7 @@ void hauptSpiel(int level){ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void draw_hangman(int versuche) { |
|
|
|
|
|
|
|
|
void zeichne_galgen(int versuche) { |
|
|
clear_screen(); |
|
|
clear_screen(); |
|
|
printf("Galgenmann!\n"); |
|
|
printf("Galgenmann!\n"); |
|
|
printf("v.1.0.2\n\n"); |
|
|
printf("v.1.0.2\n\n"); |
|
|