aboutsummaryrefslogtreecommitdiff
path: root/src/board.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-26 14:10:48 +0200
committerAdam <adammegarules1@gmail.com>2026-07-26 14:10:48 +0200
commitc04f179b9902532a8d5db0c2ebd98460a70fc652 (patch)
tree6fe2718c2a172a24c5bf2fc24030392007c80ffa /src/board.hpp
parent1db141c6c0d87cde4270d50b661162273ef6a9f5 (diff)
making repl work
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_ */