Test game.c

This commit is contained in:
Nils Kuebler 2025-11-04 12:39:16 +01:00
parent 58c9e7b321
commit 805406d7d6

View File

@ -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