aboutsummaryrefslogtreecommitdiff
path: root/src/board.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.hpp')
-rw-r--r--src/board.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/board.hpp b/src/board.hpp
index 3bf581a..f085326 100644
--- a/src/board.hpp
+++ b/src/board.hpp
@@ -29,7 +29,22 @@ struct board {
uint16_t MoveClock;
};
+struct Position {
+ uint8_t rank;
+ uint8_t file;
+
+ bool operator==(const Position &) const = default;
+};
+
+struct Move {
+ Position From;
+ Position To;
+
+ bool operator==(const Move &) const = default;
+};
void printBoard(board *b);
void setBoardFen(std::string fen, board *b);
Piece createPiece(pieceType type, bool color, bool moved = false);
-#endif /* SRC_BOARD_H_ */
+
+void PlayMove(Move move, board *b); // TODO implement
+#endif /* SRC_BOARD_H_ */