blob: 32143f7b4a1b02c863ede86d3e1e3c716c61fd33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef SRC_MOVES_H_
#define SRC_MOVES_H_
#include "board/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);
GameState GetNewGameState(Game *g);
#endif /* SRC_MOVES_H_ */
|