Add gather_statistics command that allows gathering statistics from a .bin or .binpack file. Initially only support position count.

This commit is contained in:
Tomasz Sobczyk
2021-02-28 15:21:49 +01:00
committed by nodchip
parent b68cd36708
commit 0ddad45ab2
5 changed files with 240 additions and 1 deletions

View File

@@ -40,6 +40,7 @@
#include "learn/learn.h"
#include "learn/convert.h"
#include "learn/transform.h"
#include "learn/stats.h"
using namespace std;
@@ -349,6 +350,7 @@ void UCI::loop(int argc, char* argv[]) {
else if (token == "convert_plain") Learner::convert_plain(is);
else if (token == "convert_bin_from_pgn_extract") Learner::convert_bin_from_pgn_extract(is);
else if (token == "transform") Learner::transform(is);
else if (token == "gather_statistics") Learner::Stats::gather_statistics(is);
// Command to call qsearch(),search() directly for testing
else if (token == "qsearch") qsearch_cmd(pos);