/* Sample solution. Oct 2002. B. Cohen. Note: this set of methods satisfies the assignment, but is still logically incomplete. Consider what happens if the board is full, but no player has won. */ #include using namespace std; class GoBoard { public: enum {MaxRow = 19, MaxCol = 19}; enum {EMPTY, BLACK, WHITE}; GoBoard(); void draw(string comment) const; void move(); bool gameOver(); bool checkForWin(); private: int _squares[MaxRow][MaxCol]; bool _gameOver; int _curPlayer; };