mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Syzygy tablebases
Adds support for Syzygy tablebases to Stockfish. See the Readme for information on using the tablebases. Tablebase support can be enabled/disabled at the Makefile level as well, by setting syzygy=yes or syzygy=no. Big/little endian are both supported. No functional change (if Tablebases are not used). Resolves #6
This commit is contained in:
committed by
Gary Linscott
parent
4509eb1342
commit
7caa6cd338
@@ -27,6 +27,10 @@
|
||||
#include "tt.h"
|
||||
#include "uci.h"
|
||||
|
||||
#ifdef SYZYGY
|
||||
#include "syzygy/tbprobe.h"
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
std::cout << engine_info() << std::endl;
|
||||
@@ -40,6 +44,9 @@ int main(int argc, char* argv[]) {
|
||||
Pawns::init();
|
||||
Threads.init();
|
||||
TT.resize(Options["Hash"]);
|
||||
#ifdef SYZYGY
|
||||
Tablebases::init(Options["SyzygyPath"]);
|
||||
#endif
|
||||
|
||||
UCI::loop(argc, argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user