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