Start des Spiels mit eigener main.c

This commit is contained in:
hilpoltsteinbe103465 committed 2026-10-19 08:49:38 +02:00
1 parent 93db739464
commit 0bd55e367a
2 files changed
+18 -1

No files matched your search

+9
View File
@@ -41,6 +41,15 @@ int main(int argc, char *argv[])
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords == wordCount) {
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else {
//Fehlermeldung
fprintf(stderr, "Error: Could not place all words (%u of %u placed).\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else
{