From 9ac5eb538692b0dd201ca31eb04b51c170bc33bb Mon Sep 17 00:00:00 2001 From: Alex Reece Date: Fri, 16 Oct 2026 18:05:10 +0200 Subject: [PATCH] increase max tries --- Startcode/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Startcode/game.c b/Startcode/game.c index 41a9163..2d7268c 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -30,7 +30,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi { // test length: // (re-)try randomly - int retries = searchFieldLen * 2; + int retries = searchFieldLen * searchFieldLen; // x*y: sehr unwahrscheinlich dass kein Treffer gefunden wird int placed = 0; if(strlen(words[word]) >= searchFieldLen) break;