diff options
Diffstat (limited to 'include/chess_board.hpp')
-rw-r--r-- | include/chess_board.hpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/chess_board.hpp b/include/chess_board.hpp new file mode 100644 index 0000000..fef1f69 --- /dev/null +++ b/include/chess_board.hpp @@ -0,0 +1,42 @@ +/* + * + * author: Yann Herklotz + * username: ymherklotz + * email: ymherklotz@gmail.com + * date created: 14/01/17 + * + * ----------------------------------------------------------------------------- + * + * Chess Board class that will have all the chess pieces on it + * + */ + +#ifndef YMH_CHESS_BOARD_HPP +#define YMH_CHESS_BOARD_HPP + +#include "chess_piece.hpp" + +#include <vector> +#include <memory> + +namespace ymhChessAI { +typedef std::vector<std::unique_ptr<ChessPiece> >::iterator boardIterator; +typedef std::vector<std::unique_ptr<ChessPiece> > boardVector; +typedef std::unique_ptr<ChessPiece> chessPiecePtr; + +class ChessBoard { +public: + ChessBoard(); + ChessBoard(const ChessBoard& other) = default; + virtual ~ChessBoard() = default; + + void printBoard(); +protected: +private: + static const unsigned CHESS_BOARD_SIZE = 64; + + boardVector board; +}; +} + +#endif |