From 1d952bf2e33cb22dd1582eb3e5d4960f0bd1f79d Mon Sep 17 00:00:00 2001 From: schneideral98915 Date: Mon, 27 Oct 2025 14:47:44 +0100 Subject: [PATCH] Final --- Start_Windows/game.c | 4 ++-- Start_Windows/main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Start_Windows/game.c b/Start_Windows/game.c index 0bb846b..3a18bf1 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -29,13 +29,13 @@ static int platziereWort(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], // Überprüfen, ob das Wort ins Feld passt if (richtung == 0 && spalte + wortLaenge > feldGroesse) return 0; // horizontal - if (richtung == 1 && zeile + wortLaenge > feldGroesse) return 0; // vertikal + if (richtung == 1 && zeile + wortLaenge > feldGroesse) return 0; // vertikal // Prüfen, ob die Positionen frei oder kompatibel sind for (unsigned int i = 0; i < wortLaenge; i++) { char c = (richtung == 0) ? salad[zeile][spalte + i] : salad[zeile + i][spalte]; if (c != EMPTY_CHAR && c != wort[i]) - return 0; // Kollision + return 0; // Kollision } // Wort eintragen diff --git a/Start_Windows/main.c b/Start_Windows/main.c index cab466b..5dc1bbe 100644 --- a/Start_Windows/main.c +++ b/Start_Windows/main.c @@ -46,8 +46,8 @@ int main(int argc, char *argv[]) printf("Alle %u Wörter wurden erfolgreich platziert!\n\n", wordCount); // Spiel starten - //showWordSalad(wordSalad, SALAD_SIZE); - startGame(wordSalad, SALAD_SIZE, words, wordCount, ); + + startGame(wordSalad, SALAD_SIZE, words, wordCount, 800); } else