aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
blob: 2cede4919f3e9f6b7c5e17e281e0a45f643130d5 (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_ */