Template
input und main in Start_Windows und Start_Linux geupdated
This commit is contained in:
+13
-3
@@ -37,10 +37,20 @@ int main(int argc, char *argv[])
|
||||
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
|
||||
|
||||
// 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)
|
||||
{
|
||||
// Start the game if successful
|
||||
startGame(wordSalad,SALAD_SIZE,words,wordCount,SALAD_SIZE);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Error message if some words couldn't be placed
|
||||
fprintf(stderr, "Error: Only %u out of %u words could be placed in the word salad.\n",
|
||||
placedWords, wordCount);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user