game.c implementiert und getestet, sollte jetzt immer kompilieren :)

This commit is contained in:
Manuel Glock committed 2026-10-15 23:37:23 +02:00
1 parent f0bb20bab0
commit 0344fc3566
6 files changed
+745 -18

No files matched your search

+6 -4
View File
@@ -37,10 +37,12 @@ int main(int argc, char *argv[])
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// 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){
startGame(wordSalad,SALAD_SIZE,words,wordCount,800);
} else {
fprintf(stderr, "konnte nicht alle Wörter platzieren %d von %d \n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else
{