From 2f401ec6422a5d44fa1eb64b5b7d1d05c8075b19 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 16 Aug 2026 18:05:27 +0200 Subject: refactor(board): refactoring pawn move generation code for better perfomance and quality --- src/moves.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moves.hpp') diff --git a/src/moves.hpp b/src/moves.hpp index 54ab730..c7ce5e3 100644 --- a/src/moves.hpp +++ b/src/moves.hpp @@ -14,8 +14,8 @@ void GenerateSlidingMoves(Game *g, int from, bool GenerateQuietMoves); void GenerateKingMoves(Game *g, int from, std::vector &moves, bool GenerateQuietMoves); -void GeneratePawnMoves(Game *b, uint8_t from, std::vector &moves, - bool GenerateQuietMoves); +void GeneratePawnMoves(const Game &g, uint8_t from, + std::vector &moves, bool GenerateQuietMoves); bool IsSquareAttacked(Game *g, Position square, bool byColor); void GenerateCastlingMoves(int from, Game *g, std::vector &moves); GameState GetNewGameState(Game *g); -- cgit v1.2.3