void Wait(double wait);
- bool Setup(const char * redName, const char * blueName);
+ Piece::Colour Setup(const char * redName, const char * blueName);
MovementResult Play();
void PrintEndMessage(const MovementResult & result);
static void HandleBrokenPipe(int signal);
-
+ void ReadUserCommand();
const Piece::Colour Turn() const {return turn;}
+ void ForceTurn(const Piece::Colour & newTurn) {turn = newTurn;}
int TurnCount() const {return turnCount;}
static Game * theGame;
private:
FILE * log;
- Piece::Colour reveal;
+ public:
+ const Piece::Colour reveal;
int turnCount;
static bool gameCreated;