diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-16 18:05:27 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-16 18:05:27 +0200 |
| commit | 2f401ec6422a5d44fa1eb64b5b7d1d05c8075b19 (patch) | |
| tree | 6204da14914b7bcfade0061b7e4bdd68eeff3535 /src/moves.hpp | |
| parent | 55ccaf0c531e1bea330f65c8d2f1c739819c2459 (diff) | |
refactor(board): refactoring pawn move generation code for better perfomance and quality
Diffstat (limited to 'src/moves.hpp')
| -rw-r--r-- | src/moves.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<uint16_t> &moves, bool GenerateQuietMoves); -void GeneratePawnMoves(Game *b, uint8_t from, std::vector<uint16_t> &moves, - bool GenerateQuietMoves); +void GeneratePawnMoves(const Game &g, uint8_t from, + std::vector<uint16_t> &moves, bool GenerateQuietMoves); bool IsSquareAttacked(Game *g, Position square, bool byColor); void GenerateCastlingMoves(int from, Game *g, std::vector<uint16_t> &moves); GameState GetNewGameState(Game *g); |
