diff --git a/Start_Linux/main.c b/Start_Linux/main.c index 1db8b7c..78c6363 100644 --- a/Start_Linux/main.c +++ b/Start_Linux/main.c @@ -38,23 +38,17 @@ int main(int argc, char *argv[]) // Check if all words were successfully placed // error message if some words couldn't be placed - - printf("placed words: %d\n", placedWords); - printf("word count: %d\n", wordCount); - if (placedWords < wordCount) { int notPlacedNum = wordCount - placedWords; fprintf(stderr, "%d word(s) couldn't be placed\n", notPlacedNum); + exitCode = EXIT_FAILURE; } - // TODO: - // correct parameters for startGame - - // Start the game if at least 1 word has been successfully placed - else if (placedWords >= 1) + // Start the game if all words were successfully placed + else { - startGame(wordSalad, 80, words, placedWords, 800); + startGame(wordSalad, SALAD_SIZE, words, wordCount, 800); } } else