diff options
Diffstat (limited to 'src/board.hpp')
| -rw-r--r-- | src/board.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/board.hpp b/src/board.hpp index afdb938..9e80025 100644 --- a/src/board.hpp +++ b/src/board.hpp @@ -21,7 +21,7 @@ struct Piece { bool moved; }; -struct board { +struct Board { Piece pieces[64]; bool turn; // 1 white; 0 black std::string castle; @@ -42,8 +42,9 @@ struct Move { bool operator==(const Move &) const = default; }; -void printBoard(board *b); +void printBoard(Board *b); Piece createPiece(pieceType type, bool color, bool moved = false); -void PlayMove(Move move, board *b); // TODO implement -#endif /* SRC_BOARD_H_ */ +void PlayMove(Move move, Board *b); +int PositionToIndex(Position i); +#endif /* SRC_BOARD_H_ */ |
