diff --git a/Startcode/main.c b/Startcode/main.c index 03da755..c55d440 100644 --- a/Startcode/main.c +++ b/Startcode/main.c @@ -38,7 +38,14 @@ int main(int argc, char *argv[]) // TODO: // Check if all words were successfully placed - // Start the game if successful + if (wordCount == placedWords) { + + } + //Start the game if successful + else { + fprintf(stderr,"Error: Only %u of %u words could be placed.\n", placedWords, wordCount); + exitCode = EXIT_FAILURE; + } // error message if some words couldn't be placed }