[MoveGenerator] cleanup

This commit is contained in:
2022-12-22 23:14:19 +01:00
parent 8d028ba087
commit 79b5dd4a86
4 changed files with 59 additions and 54 deletions

View File

@@ -17,18 +17,14 @@ class MoveGenerator {
public:
using MoveVec = std::vector<Move>;
static void generatePawnMoves(const BoardState &bs, const Square &from,
const std::optional<Square> &eps,
PieceColor color,
MoveVec &moves);
static void generatePawnMoves(const BoardState &bs, const Square &from, PieceColor color, MoveVec &moves);
static void generateBishopMoves(const BoardState &bs, const Square &from, PieceColor color, MoveVec &moves);
static void generateKingMoves(const BoardState &bs, const Square &from, PieceColor color, CastlingRights cr, MoveVec &moves);
static void generateRookMoves(const BoardState &bs, const Square &from, PieceColor color, MoveVec &moves);
static void generateQueenMoves(const BoardState &bs, const Square &from, PieceColor color, MoveVec &moves);
static void generatePawnMoves(const BoardState &bs, const Square &from, MoveVec &moves);
static void generateBishopMoves(const BoardState &bs, const Square &from, MoveVec &moves);
static void generateKingMoves(const BoardState &bs, const Square &from, MoveVec &moves);
static void generateRookMoves(const BoardState &bs, const Square &from, MoveVec &moves);
static void generateQueenMoves(const BoardState &bs, const Square &from, MoveVec &moves);
private:
static void generatePawnMoves(const BoardState &bs, const Square &from, BitBoard targets, PieceColor color, MoveVec &moves);
static void generatePawnMoves(const BoardState &bs, const Square &from, BitBoard targets, MoveVec &moves);
static void generateMoves(const Square &from, BitBoard movesBB, MoveVec &moves);
static void generateMovesWithPromotion(const Square &from, BitBoard movesBB, MoveVec &moves);