changed numbers to variable

This commit is contained in:
Andreas Binner committed 2026-10-30 09:45:10 +01:00
1 parent 3b6914dc8e
commit ab3d269759
1 file changed
+2 -2
+2 -2
View File
@@ -41,9 +41,9 @@ 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(wordCount > 19) if(wordCount >= SALAD_SIZE)
{ {
if(placedWords != 20) if(placedWords != SALAD_SIZE)
{ {
exitCode = EXIT_FAILURE; exitCode = EXIT_FAILURE;
printf("Only %d of %d possible words could be placed\n", placedWords, 20); printf("Only %d of %d possible words could be placed\n", placedWords, 20);