From 64247b0c528e32e42c2e96e5729cad24f925a3f0 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 21:12:21 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Umbenennen=20der=20formalen=20Pa?= =?UTF-8?q?rameter=20von=20wordGuessed()=20zu=20verst=C3=A4ndlicheren=20Na?= =?UTF-8?q?men?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Tim/hangman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 8719211..64e6ccb 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -149,11 +149,11 @@ char* getWordFromList(int x) } } -bool wordGuessed(char x[], char y[]) +bool wordGuessed(char guessWord[], char displayWord[]) { - if(strcmp(x,y) == 0) + if(strcmp(guessWord, displayWord) == 0) { - printf("Du hast gewonnen!\nDas gesuchte Wort war \"%s\"\n\n",x); + printf("Du hast gewonnen!\nDas gesuchte Wort war \"%s\"\n\n",guessWord); return true; } else