From 70c663599102ea33fb5a79a2cfc86967617ce2d1 Mon Sep 17 00:00:00 2001 From: zidanmo99094 Date: Tue, 27 Oct 2026 12:24:34 +0100 Subject: [PATCH 1/2] text --- Startcode/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Startcode/game.c b/Startcode/game.c index c18da01..36d24c1 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -3,7 +3,7 @@ #include #include -#define MAX_RAND_TRIES_PER_WORD 10 +#define MAX_RAND_TRIES_PER_WORD 1000 #define EMPTY_CHAR 0 // TODO: Spiellogik implementieren: From fb4211872eb35eb5c0032d99629e5ec7935f49b4 Mon Sep 17 00:00:00 2001 From: zidanmo99094 Date: Tue, 27 Oct 2026 12:37:21 +0100 Subject: [PATCH 2/2] text --- Startcode/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Startcode/game.c b/Startcode/game.c index 36d24c1..54a4fe6 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -11,7 +11,7 @@ * restliche Felder mit zufälligen Buchstaben füllen */ // Creates the word salad by placing words randomly and filling empty spaces -int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int wordCount, char **words) +int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) { // 1. Spielfeld vollständig mit EMPTY_CHAR initialisieren for (int r = 0; r < MAX_SEARCH_FIELD_LEN; r++) {