initialisierung des Spiels

This commit is contained in:
jw 2025-10-29 16:10:00 +01:00
parent ba4be788da
commit 53388be6b1

View File

@ -41,8 +41,18 @@ int main(int argc, char *argv[])
// TODO: // TODO:
// Check if all words were successfully placed // Check if all words were successfully placed
// Start the game if successful if(placedWords == wordCount)
// error message if some words couldn't be placed {
// Start the graphical game
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else
{
// Error message if some words couldn't be placed
fprintf(stderr, "Only %u out of %u words could be placed in the word salad.\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
} }
else else