generated from freudenreichan/info2Praktikum-Wortsalat
Implement game initialization in main.c and add Wordsalad_myversion target
This commit is contained in:
1 parent
93db739464
commit
03ff8e655a
2 files changed
+19
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user