diff --git a/Startcode/main.c b/Startcode/main.c index fbf9ad6..7152f65 100644 --- a/Startcode/main.c +++ b/Startcode/main.c @@ -41,9 +41,9 @@ int main(int argc, char *argv[]) // Start the game if successful // error message if some words couldn't be placed - if(wordCount > 19) + if(wordCount >= SALAD_SIZE) { - if(placedWords != 20) + if(placedWords != SALAD_SIZE) { exitCode = EXIT_FAILURE; printf("Only %d of %d possible words could be placed\n", placedWords, 20);