Mein Commit-Kommentar
This commit is contained in:
parent
605ef0fdeb
commit
b62c454e23
@ -41,6 +41,24 @@ int main(int argc, char *argv[])
|
|||||||
// Start the game if successful
|
// Start the game if successful
|
||||||
// error message if some words couldn't be placed
|
// error message if some words couldn't be placed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (placedWords == wordCount)
|
||||||
|
{
|
||||||
|
// Start the game
|
||||||
|
unsigned int windowSize = 900; //FRAGE: Programm so programmieren, dass man das weglassen kann
|
||||||
|
startGame(wordSalad, SALAD_SIZE, words, wordCount, windowSize);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Error message if some words couldn't be placed
|
||||||
|
fprintf(stderr, "Error: 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