generated from freudenreichan/info2Praktikum-Wortsalat
Fixed bugs, game is functional
This commit is contained in:
parent
e29f2bb6c3
commit
af80d62ba6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user