From b1d7cbc74b5fc63ddd3c1057a4797226bf09a3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Sun, 26 Oct 2025 15:21:03 +0100 Subject: [PATCH] =?UTF-8?q?Wortcheck=20mit=20Game-Start=20integriert=20und?= =?UTF-8?q?=20Fehlerausgabe=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Start_Windows/main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Start_Windows/main.c b/Start_Windows/main.c index 9b35cdb..48085f2 100644 --- a/Start_Windows/main.c +++ b/Start_Windows/main.c @@ -56,7 +56,17 @@ int main(int argc, char *argv[]) // TODO: // Check if all words were successfully placed // Start the game if successful - // error message if some words couldn't be placed + // error message if some words couldn't be placed + if(placedWords == wordCount) + { + // Start the graphical game with the created word salad + startGraphicalGame(wordSalad, SALAD_SIZE, words, wordCount); + } + else + { + fprintf(stderr, "Could not place all words into the word salad. Placed %u out of %u words.\n", placedWords, wordCount); + exitCode = EXIT_FAILURE; + } } else