Start des Spiels mit eigener main.c
This commit is contained in:
1 parent
93db739464
commit
0bd55e367a
2 files changed
+18
-1
No files matched your search
@@ -41,6 +41,15 @@ int main(int argc, char *argv[])
|
||||
// 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 {
|
||||
//Fehlermeldung
|
||||
fprintf(stderr, "Error: Could not place all words (%u of %u placed).\n", placedWords, wordCount);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user