forked from freudenreichan/info2Praktikum-Wortsalat
Compare commits
2
Commits
93db739464
...
43f85de5a1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43f85de5a1 | ||
|
|
14c2c5d4f3 |
+8
-1
@@ -38,7 +38,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
// TODO:
|
||||
// Check if all words were successfully placed
|
||||
// Start the game if successful
|
||||
if (wordCount == placedWords) {
|
||||
startGame(wordSalad, SALAD_SIZE, words, wordCount,800);
|
||||
}
|
||||
//Start the game if successful
|
||||
else {
|
||||
fprintf(stderr,"Error: Only %u of %u words could be placed.\n", placedWords, wordCount);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
// error message if some words couldn't be placed
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user