Game Output implementiert

This commit is contained in:
2025-10-20 15:29:55 +02:00
parent 48c0aadace
commit 2579dede52
9 changed files with 590 additions and 2 deletions
+14 -2
View File
@@ -38,13 +38,25 @@ 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
if(placedWords == wordCount)
{
printf("Eingabe war erfolgreich!\nDas Spiel beginnt:");
void startGame(wordSalad[][], searchFieldSize, words[][], numberOfWords, windowSize)
}
else
{
printf("Fehler! Es konnten nicht alle Woerter hinzugefuegt werden!\n Bitte Spiel neustarten!");
}
// Start the game if successful
// error message if some words couldn't be placed
}
else
{
// Print error message if file couldn't be opened
fprintf(stderr, "Could not open file %s for reading ...\n", argv[1]);
exitCode = EXIT_FAILURE;
}