diff --git a/Startcode/game.c b/Startcode/game.c index 803301f..9ed1ef1 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -13,5 +13,62 @@ // 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 row, col, word, startcol=0, startrow=0; + srand(time(NULL)); + for(row=0; row