From 07439b6684c13396a9efbed1002d8e48b2ff24be Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Wed, 7 Feb 2024 09:54:13 +0100 Subject: [PATCH] refactoring: has_won --> gewonnen --- src/main/c/hangman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/hangman.c b/src/main/c/hangman.c index c579ebe..5cad90c 100644 --- a/src/main/c/hangman.c +++ b/src/main/c/hangman.c @@ -19,7 +19,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(); @@ -189,7 +189,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(); @@ -332,7 +332,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;