main.c verändert

This commit is contained in:
MiraSchütz committed 2026-10-26 17:51:49 +01:00
1 parent a0bd61a872
commit b5d6a5d1b3
1 file changed
+4 -6
+4 -6
View File
@@ -40,13 +40,11 @@ int main(int argc, char *argv[])
// Check if all words were successfully placed
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords == 1){
continue;
if (placedWords == wordCount){
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}else {
createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
printf("The Words couln´d be placed in the Salad\n");
}
fprintf(stderr, "Could not open file %s for reading ...\n");
exitCode = EXIT_FAILURE;
}
else
{