From e551a025be3151bdc18d06e297947b30287545f9 Mon Sep 17 00:00:00 2001 From: maxgrf Date: Mon, 10 Nov 2025 12:39:33 +0100 Subject: [PATCH] main updated --- Start_Windows/main.c | 10 +++++++++- Start_Windows/runTests2.exe | Bin 307791 -> 307791 bytes 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Start_Windows/main.c b/Start_Windows/main.c index 03da755..52058d7 100644 --- a/Start_Windows/main.c +++ b/Start_Windows/main.c @@ -40,7 +40,15 @@ int main(int argc, char *argv[]) // Check if all words were successfully placed // Start the game if successful // error message if some words couldn't be placed - + if (placedWords == wordCount){ + startGame(wordSalad,SALAD_SIZE,words, wordCount,750); + } + else + { + printf("Error. The words couldn't be placed.\n"); + return -1; + } + } else { diff --git a/Start_Windows/runTests2.exe b/Start_Windows/runTests2.exe index 0990a5e18dc7a908bd38a566f3d25d03589230fc..4a15f3bd685ac489c3f53be8817379764e069502 100644 GIT binary patch delta 33 pcmX^AMCkkzp$Q#K(#Ixt`7v3AG~Q~x#n^g_sr44~)>|y48vzd-54HdR delta 33 rcmV++0N(%4