initialisierung des Spiels
This commit is contained in:
parent
ba4be788da
commit
53388be6b1
@ -41,8 +41,18 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// Check if all words were successfully placed
|
// Check if all words were successfully placed
|
||||||
// Start the game if successful
|
if(placedWords == wordCount)
|
||||||
// error message if some words couldn't be placed
|
{
|
||||||
|
// Start the graphical game
|
||||||
|
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Error message if some words couldn't be placed
|
||||||
|
fprintf(stderr, "Only %u out of %u words could be placed in the word salad.\n", placedWords, wordCount);
|
||||||
|
exitCode = EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user