From c086500f893e5736ba8bb4fc94806434526c56d0 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 21:13:26 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Umbenennen=20der=20formalen=20Pa?= =?UTF-8?q?rameter=20von=20letterGuessedzu=20verst=C3=A4ndlicheren=20Namen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Tim/hangman.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 64e6ccb..040a085 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -162,20 +162,20 @@ bool wordGuessed(char guessWord[], char displayWord[]) } } -bool letterGuessed(char x, char y[], int length) +bool letterGuessed(char selectedLetter, char guessWord[], int length) { int counter = 0; for(int i = 0; i0) { - printf("Dein gewaehlter Buchstabe %c war ein Treffer!\n", x); + printf("Dein gewaehlter Buchstabe %c war ein Treffer!\n", selectedLetter); return true; } else