This commit is contained in:
Alexei Keller 2025-11-10 12:54:14 +01:00
parent e8ba3293a6
commit 99a0600fd2
4 changed files with 13 additions and 11 deletions

View File

@ -36,21 +36,19 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// TODO:
// TODO: (if Schleife implementieren, die das prüft)
// 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
{

View File

@ -0,0 +1 @@
Hund,Katze; Maus

View File

View File

@ -0,0 +1,3 @@
Apfel
Banane
Kiwi