diff --git a/Start_Windows/game.c b/Start_Windows/game.c index fc37d19..a14ac6a 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -35,7 +35,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi int x = rand() % searchFieldLen; int y = rand() % searchFieldLen; - if (horizontal = 1) + if (horizontal = !NULL) { if (x + wordlength > searchFieldLen) // word does not fit { @@ -53,7 +53,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi } } - if (fits = 1) + if (fits = !NULL) { for (int i = 0; i < wordlength; i++) { @@ -81,7 +81,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi break; } } - if (fits = 1) + if (fits = !NULL) { for (int i = 0; i < wordlength; i++) { diff --git a/Start_Windows/game.o b/Start_Windows/game.o new file mode 100644 index 0000000..ade719a Binary files /dev/null and b/Start_Windows/game.o differ diff --git a/Start_Windows/graphicalGame.o b/Start_Windows/graphicalGame.o new file mode 100644 index 0000000..a2e7e31 Binary files /dev/null and b/Start_Windows/graphicalGame.o differ diff --git a/Start_Windows/input.o b/Start_Windows/input.o new file mode 100644 index 0000000..2e34fa4 Binary files /dev/null and b/Start_Windows/input.o differ diff --git a/Start_Windows/main.o b/Start_Windows/main.o new file mode 100644 index 0000000..9d4a98c Binary files /dev/null and b/Start_Windows/main.o differ diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe new file mode 100644 index 0000000..033f873 Binary files /dev/null and b/Start_Windows/runTests.exe differ diff --git a/Start_Windows/wordsalad.exe b/Start_Windows/wordsalad.exe new file mode 100644 index 0000000..5bcbca3 Binary files /dev/null and b/Start_Windows/wordsalad.exe differ diff --git a/Start_Windows/wordsalad_initial.exe b/Start_Windows/wordsalad_initial.exe index 339a53c..c16bf5a 100644 Binary files a/Start_Windows/wordsalad_initial.exe and b/Start_Windows/wordsalad_initial.exe differ