Compare commits

...

2 Commits

Author SHA1 Message Date
Björn
288693c76f Startet Game oder gibt Fehlermeldung 2025-10-26 15:45:09 +01:00
Björn
b1d7cbc74b Wortcheck mit Game-Start integriert und Fehlerausgabe hinzugefügt 2025-10-26 15:21:03 +01:00

View File

@ -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 game with the created word salad
startGame(wordSalad, SALAD_SIZE, words, wordCount, placedWords);
}
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