+
+
+
+ if (argc == 1)
+ {
+ fprintf(stderr, "Usage: stratego [options] red blue\n");
+ fprintf(stderr, " stratego --help\n");
+ exit(EXIT_SUCCESS);
+
+ }
+ CreateGame(argc, argv);
+ if (Game::theGame == NULL)
+ {
+ fprintf(stderr, "ERROR: Couldn't create a game!\n");
+ exit(EXIT_FAILURE);
+ }
+
+ MovementResult result = Game::theGame->Play();
+ Game::theGame->PrintEndMessage(result);
+ PrintResults(result);
+
+ exit(EXIT_SUCCESS);
+ return 0;
+}