aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
diff options
context:
space:
mode:
authorPeter B. <peter.bezdek@gmail.com>2026-07-25 18:10:17 +0200
committerPeter B. <peter.bezdek@gmail.com>2026-07-25 18:10:17 +0200
commit98e5c1107ad8f8b22b624ab13c3c96fcbb37cdd2 (patch)
tree5d73061fc5a3db44b984452fcc909824b76a2a5c /src/moves.hpp
parent7d0364996c3d8b34d4634a163a0829fafcd42fca (diff)
parentf8d8c20695684a545b536e83a9977c25028232d5 (diff)
Merge branch 'main' of https://github.com/AdamMegaRules/chess
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_ */