copied files to windows/linux

This commit is contained in:
2025-10-21 15:50:28 +02:00
parent 37791de41c
commit ddfcc33563
7 changed files with 147 additions and 11 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
// Read words from file and store in 'words' array
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
{
char lines [(MAX_WORD_LEN + 2) * maxWordCount]; //Es wird davon ausgegangen, dass die Wörter nur durch eine Trennzeichen und ein Leerzeichen von einander gertrennt gespeichert werden
char lines [MAX_LINE_LEN];
int word_counter = 0;
while (fgets(lines, sizeof(lines) , file) != NULL)
+1 -2
View File
@@ -36,12 +36,11 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// TODO:
// Check if all words were successfully placed
if(placedWords == wordCount)
{
printf("Eingabe war erfolgreich!\nDas Spiel beginnt:");
void startGame(wordSalad, searchFieldSize, words, numberOfWords, windowSize);
startGame(wordSalad, SALAD_SIZE, words, wordCount, SALAD_SIZE);
}
else
{