diff --git a/Start_Windows/game.o b/Start_Windows/game.o deleted file mode 100644 index e7a1a74..0000000 Binary files a/Start_Windows/game.o and /dev/null differ diff --git a/Start_Windows/input.o b/Start_Windows/input.o deleted file mode 100644 index d0f0768..0000000 Binary files a/Start_Windows/input.o and /dev/null differ diff --git a/Start_Windows/main.c b/Start_Windows/main.c index 2432b34..ed129e6 100644 --- a/Start_Windows/main.c +++ b/Start_Windows/main.c @@ -36,19 +36,21 @@ int main(int argc, char *argv[]) // Create the word salad by placing words into grid placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount); - // TODO: (if Schleife implementieren, die das prüft) + // TODO: // Check if all words were successfully placed + if(wordCount == placedWords) + { + exitCode = EXIT_SUCCESS; + startGame(wordSalad,SALAD_SIZE, words,wordCount,750); + } + else + { + exitCode = EXIT_FAILURE; + printf("Bei der Platzierung ist etwas falsch gelaufen!"); + } // Start the game if successful // error message if some words couldn't be placed - if (placedWords == wordCount){ - showWordSalad(wordSalad, placedWords); - } - else{ - printf("Error. The words couldn't be placed.\n"); - return -1; - } - } else { diff --git a/Start_Windows/testwords_delims.txt b/Start_Windows/testwords_delims.txt deleted file mode 100644 index e721fce..0000000 --- a/Start_Windows/testwords_delims.txt +++ /dev/null @@ -1 +0,0 @@ -Hund,Katze; Maus diff --git a/Start_Windows/testwords_empty.txt b/Start_Windows/testwords_empty.txt deleted file mode 100644 index e69de29..0000000 diff --git a/Start_Windows/testwords_simple.txt b/Start_Windows/testwords_simple.txt deleted file mode 100644 index 37d7524..0000000 --- a/Start_Windows/testwords_simple.txt +++ /dev/null @@ -1,3 +0,0 @@ -Apfel -Banane -Kiwi \ No newline at end of file