blob: e37e8b3da3a429a9a378916ef4f1b7253b38550b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef SRC_OPENING_BOOK_H_
#define SRC_OPENING_BOOK_H_
#include "board/board.hpp"
#include <cstdint>
#include <string>
#include <vector>
struct Polygot_Entry {
uint64_t key;
uint16_t move;
uint16_t weight;
uint32_t learn;
};
class Polyglot_Book {
public:
bool Load(const std::string &filename);
bool HasMove(const Game &board) const;
Move GetMove(const Game &board) const;
private:
std::vector<Polygot_Entry> entries;
};
#endif /* SRC_OPENING_BOOK_H_ */
|