Fehlerfall Wordplazierung

This commit is contained in:
kuehnemundli103965 committed 2026-10-19 08:50:29 +02:00
1 parent 93db739464
commit 14c2c5d4f3
1 file changed
+8 -1
+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) {
}
//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
}