diff --git a/Start_Windows/game.c b/Start_Windows/game.c index 9a0a2ee..e62efab 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -13,6 +13,7 @@ // 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)); // wipe field int placedWords = 0; for (int i = 0; i < searchFieldLen; i++) diff --git a/Start_Windows/game.o b/Start_Windows/game.o index 3c2ae47..2cab4ad 100644 Binary files a/Start_Windows/game.o and b/Start_Windows/game.o differ diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe index 7fad6df..b04796d 100644 Binary files a/Start_Windows/runTests.exe and b/Start_Windows/runTests.exe differ diff --git a/Start_Windows/wordsalad.exe b/Start_Windows/wordsalad.exe index d1cf31e..492f029 100644 Binary files a/Start_Windows/wordsalad.exe and b/Start_Windows/wordsalad.exe differ