generated from freudenreichan/info2Praktikum-Wortsalat
test 18
This commit is contained in:
parent
9ab08b84f6
commit
16134abad0
Binary file not shown.
Binary file not shown.
@ -36,19 +36,21 @@ int main(int argc, char *argv[])
|
|||||||
// Create the word salad by placing words into grid
|
// Create the word salad by placing words into grid
|
||||||
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
|
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
|
||||||
|
|
||||||
// TODO: (if Schleife implementieren, die das prüft)
|
// TODO:
|
||||||
// Check if all words were successfully placed
|
// Check if all words were successfully placed
|
||||||
|
if(wordCount == placedWords)
|
||||||
|
{
|
||||||
|
exitCode = EXIT_SUCCESS;
|
||||||
|
startGame(wordSalad,SALAD_SIZE, words,wordCount,750);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
exitCode = EXIT_FAILURE;
|
||||||
|
printf("Bei der Platzierung ist etwas falsch gelaufen!");
|
||||||
|
}
|
||||||
// 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 == wordCount){
|
|
||||||
showWordSalad(wordSalad, placedWords);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
printf("Error. The words couldn't be placed.\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
Hund,Katze; Maus
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
Apfel
|
|
||||||
Banane
|
|
||||||
Kiwi
|
|
||||||
Loading…
x
Reference in New Issue
Block a user