#ifndef _BOARD_H #define _BOARD_H #include using namespace std; #include "tvector.h" class Board { public: enum Player{X,O, empty}; Board(); bool isFull() const; bool isClear(int index) const; bool isWin(Board::Player p) const; void print() const; int clearCount() const; // # clear locations string tostring() const; int size() const; void place(int index, Board::Player p); void unplace(int index); private: tvector mySquares; string myString; int myCount; // # pieces played bool horizWin(int index, Board::Player p) const; bool vertWin(int index, Board::Player p) const; }; #endif