From 327332b4a20321816d9607cb7219ace08d210afa Mon Sep 17 00:00:00 2001 From: KohlerMaxi Date: Thu, 29 Oct 2026 14:40:17 +0100 Subject: [PATCH] =?UTF-8?q?tabs=20gesl=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Startcode/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Startcode/main.c b/Startcode/main.c index 892fa61..1e8f271 100644 --- a/Startcode/main.c +++ b/Startcode/main.c @@ -11,7 +11,7 @@ int checkSalad(char words[][MAX_WORD_LEN], char wordSalad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], int placedWords, int wordCount){ //Iteriere über alle verfügbaren Wörter int foundWords = 0; - + //suche horizontal for(int i = 0; i < wordCount; i++){ for(int h = 0; h < MAX_SEARCH_FIELD_LEN; h++){ @@ -39,7 +39,7 @@ int checkSalad(char words[][MAX_WORD_LEN], char wordSalad[MAX_SEARCH_FIELD_LEN][ } } } - + if(foundWords == placedWords) return 0; return -1; } @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) exitCode = EXIT_FAILURE; } //keine Ahnung wiegroß pixelSize sein soll - startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, placedWords, MAX_SEARCH_FIELD_LEN * SALAD_SIZE); + startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, placedWords,SALAD_SIZE * SALAD_SIZE); } else { @@ -96,4 +96,4 @@ int main(int argc, char *argv[]) } return exitCode; -} \ No newline at end of file +}