From 805406d7d65f556e3f45dc88a75e080a726e6d57 Mon Sep 17 00:00:00 2001 From: Nils Date: Tue, 4 Nov 2025 12:39:16 +0100 Subject: [PATCH] Test game.c --- Start_Windows/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Start_Windows/game.c b/Start_Windows/game.c index d8cc133..d91ccbe 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -11,9 +11,11 @@ * 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 searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) +int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount int ausrichtung) { +srand(time(NULL)); +ausrichtung = rand()%2; // 0=Horizontal 1=Vertikal } // Prints the word salad to console