Browse Source

Commit 17 - jeder eingegebene Buchstabe soll dem Array aller eingegebenen Buchstaben hinzugefügt werden

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

9
src/main/c/hangman.c

@ -15,6 +15,7 @@ void nameAusgeben();
void levelauswahl();
void hauptSpiel(int level);
void draw_hangman(int attempts);
void add_guessed_letter(char* guessed_letters, char guessed_letter);
void protokoll(){
clear_screen();
@ -249,4 +250,12 @@ void draw_hangman(int attempts) {
default:
break;
}
}
void add_guessed_letter(char* guessed_letters, char guessed_letter){
for (int i = 0; i < strlen(guessed_letters); i++){
if (guessed_letters[i] == guessed_letter){
return;
}
}
}
Loading…
Cancel
Save