diff --git a/Start_Windows/game.c b/Start_Windows/game.c index 855855f..9e842cf 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -16,7 +16,6 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi srand(time(NULL)); int placedWords = 0; - unsigned int succesfully_placed = 0; unsigned int tries = 0; unsigned int check_direction = 0, check_overlap = 0; int zeile = 0, spalte = 0, len = 0; @@ -72,8 +71,10 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi check_overlap = 1; } if(check_overlap == 0) + { tries++; break; + } } //3. Schritt: Wort in Wortsalat schreiben diff --git a/Start_Windows/game.o b/Start_Windows/game.o index f68bea8..996314c 100644 Binary files a/Start_Windows/game.o and b/Start_Windows/game.o differ diff --git a/Start_Windows/graphicalGame.o b/Start_Windows/graphicalGame.o deleted file mode 100644 index 882f85b..0000000 Binary files a/Start_Windows/graphicalGame.o and /dev/null differ diff --git a/Start_Windows/main.o b/Start_Windows/main.o deleted file mode 100644 index a3de5e1..0000000 Binary files a/Start_Windows/main.o and /dev/null differ diff --git a/Start_Windows/makefile b/Start_Windows/makefile index 1433eb5..7ebfe6e 100644 --- a/Start_Windows/makefile +++ b/Start_Windows/makefile @@ -38,6 +38,7 @@ TEST_BIN = runTests test: input.o game.o unit_tests.c $(CC) $(CFLAGS) -I$(unityfolder) -o $(TEST_BIN) input.o game.o unit_tests.c $(BINARIES)/libunity.a + # -------------------------- # Clean # -------------------------- diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe deleted file mode 100644 index f3ebba8..0000000 Binary files a/Start_Windows/runTests.exe and /dev/null differ