From 163f59d29b2c3a6236d825373437955667a1d5d5 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 29 Jul 2026 16:57:12 +0200 Subject: improving check generation --- src/moves.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/moves.hpp') diff --git a/src/moves.hpp b/src/moves.hpp index 592da3f..20ef0ba 100644 --- a/src/moves.hpp +++ b/src/moves.hpp @@ -4,16 +4,15 @@ #include "board.hpp" #include -std::vector GetLegalMoves(Game *b); -std::vector GetPseudoLegalMoves(Game *b); +std::vector GetLegalMoves(Game *g); +std::vector GetPseudoLegalMoves(Game *g); Position IndexToPosition(int i); -void GenerateSlidingMoves(Game *b, int from, +void GenerateSlidingMoves(Game *g, int from, const std::array &directions, std::vector &moves); -void GenerateKingMoves(Game *b, int from, std::vector &moves); -void GenerateKningtMoves(Game *b, int from, std::vector &moves); -void GeneratePawnMoves(Game *b, int from, std::vector &moves); -bool IsSquareAttacked(Game *board, Position square, bool white); -bool IsPieceTypeAttacked(Game *board, PieceType type, bool white); +void GenerateKingMoves(Game *g, int from, std::vector &moves); +void GenerateKnightMoves(Game *g, int from, std::vector &moves); +void GeneratePawnMoves(Game *g, int from, std::vector &moves); +bool IsSquareAttacked(Game *g, Position square, bool byWhite); #endif /* SRC_MOVES_H_ */ -- cgit v1.2.3