aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-29 16:57:12 +0200
committerAdam <adammegarules1@gmail.com>2026-07-29 16:57:12 +0200
commit163f59d29b2c3a6236d825373437955667a1d5d5 (patch)
tree44d468180bb00213a8e268eb9b6cd07be82a199d /src/moves.hpp
parent9ce8ba4a63c1fbfa49af17ee7364b9165098a20f (diff)
improving check generation
Diffstat (limited to 'src/moves.hpp')
-rw-r--r--src/moves.hpp15
1 files changed, 7 insertions, 8 deletions
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 <vector>
-std::vector<Move> GetLegalMoves(Game *b);
-std::vector<Move> GetPseudoLegalMoves(Game *b);
+std::vector<Move> GetLegalMoves(Game *g);
+std::vector<Move> GetPseudoLegalMoves(Game *g);
Position IndexToPosition(int i);
-void GenerateSlidingMoves(Game *b, int from,
+void GenerateSlidingMoves(Game *g, int from,
const std::array<int, 4> &directions,
std::vector<Move> &moves);
-void GenerateKingMoves(Game *b, int from, std::vector<Move> &moves);
-void GenerateKningtMoves(Game *b, int from, std::vector<Move> &moves);
-void GeneratePawnMoves(Game *b, int from, std::vector<Move> &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<Move> &moves);
+void GenerateKnightMoves(Game *g, int from, std::vector<Move> &moves);
+void GeneratePawnMoves(Game *g, int from, std::vector<Move> &moves);
+bool IsSquareAttacked(Game *g, Position square, bool byWhite);
#endif /* SRC_MOVES_H_ */