diff --git a/game.c b/game.c index 803301f..dca0182 100644 --- a/game.c +++ b/game.c @@ -13,5 +13,47 @@ // 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) { + srand(time(NULL)); + int i,j; + int Woertergesetzt = 0; + for (i=0 ; i