#ifndef BOARD_H #define BOARD_H class Piece; #include #include "./enumerations.h" #include "./Space.h" #include "./Piece.h" #include using namespace std; //class Space; class Board{ public: Board(); ~Board(){} // operations void Clear(); // clears the entire board void Clear(int icol, int irow); // clears one space void Draw(); void DrawForPaw(); bool SucceedInserting(Piece* piece, int icol, int irow); bool ReconfigureThenTryInserting(Piece* piece, int icol, int irow); // setters int InsertPiece(Piece* p,int column,int row); // getters Space ReturnSpace(int icol, int irow){return spaces[icol][irow];} Space NextAvailableBlackSpace(); bool AnyRedOrphans(); // this just checks to see if any red spaces are unoccupied and totally surrounded by occupied blacks bool AnyBlackOrphans(); // this just checks to see if any red spaces are unoccupied and totally surrounded by occupied blacks private: Space spaces[8][8]; // row then column Space* blackSpaces[32]; // list of black spaces Space* redSpaces[32]; // list of red spaces }; #endif