From 7eaf6e2f1f95a934eec141295b8e8447992210f8 Mon Sep 17 00:00:00 2001 From: "Chris.F" Date: Sat, 17 Oct 2026 15:29:22 +0200 Subject: [PATCH] main abgeaendert --- Startcode/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Startcode/main.c b/Startcode/main.c index 7931401..0d3ecb6 100644 --- a/Startcode/main.c +++ b/Startcode/main.c @@ -41,8 +41,11 @@ int main(int argc, char *argv[]) { startGame(wordSalad, SALAD_SIZE, words, wordCount, 800); } - - } + else + { + fprintf(stderr, "konnte nicht alle Wörter platzieren %d von %d \n", placedWords, wordCount); + exitCode = EXIT_FAILURE; + } else { // Print error message if file couldn't be opened