Game Output implementiert
This commit is contained in:
@@ -38,13 +38,25 @@ int main(int argc, char *argv[])
|
||||
|
||||
// TODO:
|
||||
// Check if all words were successfully placed
|
||||
// Start the game if successful
|
||||
// error message if some words couldn't be placed
|
||||
if(placedWords == wordCount)
|
||||
{
|
||||
printf("Eingabe war erfolgreich!\nDas Spiel beginnt:");
|
||||
void startGame(wordSalad[][], searchFieldSize, words[][], numberOfWords, windowSize)
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Fehler! Es konnten nicht alle Woerter hinzugefuegt werden!\n Bitte Spiel neustarten!");
|
||||
}
|
||||
|
||||
// Start the game if successful
|
||||
|
||||
|
||||
// error message if some words couldn't be placed
|
||||
}
|
||||
else
|
||||
{
|
||||
// Print error message if file couldn't be opened
|
||||
|
||||
fprintf(stderr, "Could not open file %s for reading ...\n", argv[1]);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user