Implement game initialization in main.c and add Wordsalad_myversion target

This commit is contained in:
tiewataffoch99039 committed 2026-10-20 10:47:50 +02:00
1 parent 93db739464
commit 03ff8e655a
2 files changed
+19

No files matched your search

+8
View File
@@ -40,6 +40,14 @@ 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){
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else{
fprintf(stderr, "Error: Could not place all worlds into the world salad (%u of %u placed).\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else