blob: ae26e2944c0e30e3c2824d951cea6662a3ac72d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef SRC_MOVES_H_
#define SRC_MOVES_H_
#include "board.hpp"
#include <vector>
std::vector<Move> GetLegalMoves(Board *b);
Position IndexToPosition(int i);
void GenerateSlidingMoves(Board *b, int from,
const std::array<int, 4> &directions,
std::vector<Move> &moves);
void GenerateKingMoves(Board *b, int from, std::vector<Move> &moves);
void GeneratePawnMoves(Board *b, int from, std::vector<Move> &moves);
#endif /* SRC_MOVES_H_ */
|