diff --git a/Start_Windows/game.c b/Start_Windows/game.c index d3a8314..f06e5eb 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -13,12 +13,13 @@ // 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) { - + printf("Hello World\n"); + return rand() % wordCount; } // Prints the word salad to console void showWordSalad(const char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen) { - + printf("Hello World\n"); } diff --git a/Start_Windows/game.exe b/Start_Windows/game.exe deleted file mode 100644 index 5b7e699..0000000 Binary files a/Start_Windows/game.exe and /dev/null differ diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 5713d9f..e6c2c5a 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -22,7 +22,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) word = strtok (NULL, " ,;"); } } - //printf("\n %d", counter); + printf("\n counter %d", counter); return counter; }