Fixed bugs, game is functional

This commit is contained in:
Tobias Grampp 2025-11-05 15:33:57 +01:00
parent e29f2bb6c3
commit af80d62ba6

View File

@ -43,7 +43,8 @@ int main(int argc, char *argv[])
// error message if some words couldn't be placed
int windowWidth = 720; //Fensterbreite outputfenster
if (placedWords == wordCount && placedWords <= MAX_NUMBER_OF_WORDS) {
startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, wordCount, windowWidth);
showWordSalad(wordSalad, SALAD_SIZE);
startGame(wordSalad, SALAD_SIZE, words, wordCount, windowWidth);
exitCode = EXIT_SUCCESS; //Start the game if placed words is equal to words in textfile
}
else {
@ -61,4 +62,4 @@ int main(int argc, char *argv[])
}
return exitCode;
}
}