aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-25 18:07:29 +0200
committerAdam <adammegarules1@gmail.com>2026-07-25 18:07:29 +0200
commitf8d8c20695684a545b536e83a9977c25028232d5 (patch)
treef595b34cf56445e7dba2aa68663b9be9622bb511 /src/moves.hpp
parent1c6c1ed8ede9edf1860b1fbd5f2898b408689a05 (diff)
adding get legal moves
Diffstat (limited to 'src/moves.hpp')
-rw-r--r--src/moves.hpp6
1 files changed, 6 insertions, 0 deletions
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 <cstdint>
+#include <vector>
struct Position {
uint8_t rank;
@@ -21,5 +22,10 @@ enum MoveResult {
};
MoveResult PlayMove(Move move, board *b); // TODO implement
+std::vector<Move> GetLegalMoves(board *b);
+Position IndexToPosition(int i);
+void GenerateSlidingMoves(board *b, int from,
+ const std::array<int, 4> &directions,
+ std::vector<Move> &moves);
#endif /* SRC_MOVES_H_ */