main vervollständigt

This commit is contained in:
Aileen Moehrlein 2025-10-31 12:52:02 +01:00
parent d7699ebb09
commit cf3187c3f8
2 changed files with 11 additions and 0 deletions

View File

@ -40,7 +40,18 @@ int main(int argc, char *argv[])
// Check if all words were successfully placed
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords == wordCount)
{
printf("Alle %u Wörter wurden erfolgreich plazieret!\n\n", wordCount);
// Spiel Start
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else
{
fprintf(stderr, "Fehler: Nur %u von %u Wörtern konnten plaziert werden.\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else
{

Binary file not shown.