blob: 20ef0ba58ce7ca5fe062fd03a37f3aba2b0cac8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef SRC_MOVES_H_
#define SRC_MOVES_H_
#include "board.hpp"
#include <vector>
std::vector<Move> GetLegalMoves(Game *g);
std::vector<Move> GetPseudoLegalMoves(Game *g);
Position IndexToPosition(int i);
void GenerateSlidingMoves(Game *g, int from,
const std::array<int, 4> &directions,
std::vector<Move> &moves);
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_ */
|