From f56178ec9afdd89b85fc0284bddefa5b3f9515d1 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Aug 2026 13:44:57 +0200 Subject: none --- src/opening_book.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/opening_book.hpp (limited to 'src/opening_book.hpp') diff --git a/src/opening_book.hpp b/src/opening_book.hpp new file mode 100644 index 0000000..e37e8b3 --- /dev/null +++ b/src/opening_book.hpp @@ -0,0 +1,24 @@ +#ifndef SRC_OPENING_BOOK_H_ +#define SRC_OPENING_BOOK_H_ + +#include "board/board.hpp" +#include +#include +#include +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 entries; +}; +#endif /* SRC_OPENING_BOOK_H_ */ -- cgit v1.2.3