From f8d8c20695684a545b536e83a9977c25028232d5 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 25 Jul 2026 18:07:29 +0200 Subject: adding get legal moves --- src/moves.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/moves.hpp') diff --git a/src/moves.hpp b/src/moves.hpp index 17a9d7d..7e95910 100644 --- a/src/moves.hpp +++ b/src/moves.hpp @@ -3,6 +3,7 @@ #include "board.hpp" #include +#include struct Position { uint8_t rank; @@ -21,5 +22,10 @@ enum MoveResult { }; MoveResult PlayMove(Move move, board *b); // TODO implement +std::vector GetLegalMoves(board *b); +Position IndexToPosition(int i); +void GenerateSlidingMoves(board *b, int from, + const std::array &directions, + std::vector &moves); #endif /* SRC_MOVES_H_ */ -- cgit v1.2.3