Browse Source

refactoring: has_won --> gewonnen

remotes/origin/peter^2
Peter Wiebe 11 months ago
parent
commit
a292fb1061
  1. 6
      src/main/c/hangman.c

6
src/main/c/hangman.c

@ -20,7 +20,7 @@ char eingabe_buchstabe();
void hole_zu_erratendes_wort(char* secret_word, int level, char* path);
void zeige_Buchstabenfeld(char secret_word[100], char guessed_letters[100]);
int buchstabe_im_zu_erratenden_wort(char guessed_letter, char secret_word[100]);
int has_won(char secret_word[100], char guessed_letters[100]);
int gewonnen(char secret_word[100], char guessed_letters[100]);
void level_plus();
int overlay();
@ -190,7 +190,7 @@ void hauptSpiel(int level){
else {
versuche++;
}
won = has_won(secret_word, guessed_letters);
won = gewonnen(secret_word, guessed_letters);
}
if (won == 1){
level_plus();
@ -333,7 +333,7 @@ int buchstabe_im_zu_erratenden_wort(char guessed_letter, char secret_word[100]){
return 1;
}
int has_won(char secret_word[100], char guessed_letters[100]){
int gewonnen(char secret_word[100], char guessed_letters[100]){
int occured;
for (int i = 0; i < strlen(secret_word); i++){
occured = 0;

|||||||
100:0
Loading…
Cancel
Save