Test game.c
This commit is contained in:
parent
58c9e7b321
commit
805406d7d6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user