From ab3d269759a6fc1f38f9258496ab6f0488bee33a Mon Sep 17 00:00:00 2001 From: Andreas Binner Date: Fri, 30 Oct 2026 09:45:10 +0100 Subject: [PATCH] changed numbers to variable --- Startcode/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);