Compare commits

...
2 Commits
Author SHA1 Message Date
meinkeal103474 2de180513e hallii halloo probe 2026-10-29 12:31:01 +01:00
haugnerqu103436 5832baf300 feat(main): check if all words got placed and start game 2026-10-29 12:10:48 +01:00
+10 -1
View File
@@ -40,7 +40,13 @@ int main(int argc, char *argv[])
// Check if all words were successfully placed // Check if all words were successfully placed
// Start the game if successful // 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)
{
printf("Error: Some words couldn't be placed!");
return EXIT_FAILURE;
}
startGame(wordSalad, SALAD_SIZE, words, wordCount, 500);
} }
else else
{ {
@@ -51,4 +57,7 @@ int main(int argc, char *argv[])
} }
return exitCode; return exitCode;
} }
hallii halloo probee