aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
diff options
context:
space:
mode:
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_ */