aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
diff options
context:
space:
mode:
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_ */