forked from freudenreichan/info2Praktikum-Wortsalat
main.c verändert
This commit is contained in:
1 parent
a0bd61a872
commit
b5d6a5d1b3
1 file changed
+4
-6
+4
-6
@@ -40,13 +40,11 @@ int main(int argc, char *argv[])
|
|||||||
// Check if all words were successfully placed
|
// Check if all words were successfully placed
|
||||||
// Start the game if successful
|
// Start the game if successful
|
||||||
// error message if some words couldn't be placed
|
// error message if some words couldn't be placed
|
||||||
if (placedWords == 1){
|
if (placedWords == wordCount){
|
||||||
continue;
|
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
|
||||||
}else {
|
}else {
|
||||||
createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
|
fprintf(stderr, "Could not open file %s for reading ...\n");
|
||||||
printf("The Words couln´d be placed in the Salad\n");
|
exitCode = EXIT_FAILURE;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user