Compare commits

...
2 Commits
Author SHA1 Message Date
kuehnemundli103965 43f85de5a1 start des Programms 2026-10-19 09:15:58 +02:00
kuehnemundli103965 14c2c5d4f3 Fehlerfall Wordplazierung 2026-10-19 08:50:29 +02:00
+8 -1
View File
@@ -38,7 +38,14 @@ int main(int argc, char *argv[])
// TODO:
// Check if all words were successfully placed
// Start the game if successful
if (wordCount == placedWords) {
startGame(wordSalad, SALAD_SIZE, words, wordCount,800);
}
//Start the game if successful
else {
fprintf(stderr,"Error: Only %u of %u words could be placed.\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
// error message if some words couldn't be placed
}