Letzter Feinschliff2

This commit is contained in:
hulwaja104499 committed 2026-11-03 12:27:06 +01:00
1 parent 7f3e18becf
commit 6977a72ae7
2 files changed
+4 -15

No files matched your search

+2
View File
@@ -46,12 +46,14 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
i++;
}
/*
// MIT HILFE VON KI ZUR KONTROLLE GEMACHT: Konsolenausgabe zur Kontrolle der eingelesenen Wörter
printf("Eingelesene Woerter (%u Stueck):\n", i);
for (unsigned int idx = 0; idx < i; idx++)
{
printf("%u. Entry: %s\n", idx + 1, words[idx]);
}
*/
return (int)i;
}
+2 -15
View File
@@ -37,7 +37,6 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
if (wordCount == 0)
{
fprintf(stderr, "Keine Woerter in %s gefunden.\n", argv[1]);
@@ -45,7 +44,8 @@ int main(int argc, char *argv[])
}
// Prüfung ob manche Wörter nicht platziert wurden
else if(placedWords != wordCount){
else if (placedWords != wordCount)
{
fprintf(stderr, "Es konnten nur %u von %u Woertern platziert werden, such den Fehler\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
@@ -55,20 +55,7 @@ int main(int argc, char *argv[])
else
{
startGame(wordSalad, SALAD_SIZE, words, wordCount, WINDOW_WIDTH);
}
}
else
{