diff --git a/Start_Windows/main.c b/Start_Windows/main.c index 03da755..7fc0ef5 100644 --- a/Start_Windows/main.c +++ b/Start_Windows/main.c @@ -41,6 +41,24 @@ int main(int argc, char *argv[]) // Start the game if successful // 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 {