5 #include "ai_controller.h"
6 #include "human_controller.h"
11 * Class to manage the game
16 Game(const char * redPath, const char * bluePath, const bool enableGraphics, double newStallTime = 1.0, const bool allowIllegal=false, FILE * newLog = NULL, const Piece::Colour & newRevealed = Piece::BOTH);
21 void Wait(double wait);
23 bool Setup(const char * redName, const char * blueName);
24 MovementResult Play();
25 void PrintEndMessage(const MovementResult & result);
28 static void HandleBrokenPipe(int signal);
31 const Piece::Colour Turn() const {return turn;}
32 int TurnCount() const {return turnCount;}
34 static Game * theGame;
36 int logMessage(const char * format, ...);
44 const bool graphicsEnabled;
47 const bool allowIllegalMoves;