forked from freudenreichan/info2Praktikum-Wortsalat
Spielinitialiserung in main.c
This commit is contained in:
1 parent
572f312fa5
commit
df82424793
1 file changed
+10
-2
+10
-2
@@ -35,9 +35,17 @@ 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);
|
||||||
|
|
||||||
|
if(placedWords==wordCount){ //checked if all words were succesfully placed
|
||||||
|
startGame(wordSalad; SALAD_SIZE; words; wordCount; 1000); // Starting the game
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
printf("Fehler! Es konnten nicht alle Wörter plaziert werden"); //Error if some words couldnt be placed
|
||||||
|
}
|
||||||
|
|
||||||
// TODO:
|
|
||||||
// Check if all words were successfully placed
|
// DONE
|
||||||
|
// Check if all words were successfully placed3
|
||||||
// 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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user