datagen could get in an inf loop if random moves resulted in game over
This commit is contained in:
1 parent
55b73dc85d
commit
c6eb3f464b
3 files changed
+43
-28
No files matched your search
@@ -10,6 +10,7 @@
|
||||
#include "benchmark.h"
|
||||
#include "perft.h"
|
||||
#include "utils.h"
|
||||
#include "datagen.h"
|
||||
|
||||
static void ParsePosition(Board &board, std::string_view command, SEARCH::SearchContext& ctx) {
|
||||
if (command.find("startpos") != std::string::npos) {
|
||||
@@ -197,6 +198,12 @@ void UCILoop(Board &board) {
|
||||
|
||||
if (input.find("nnue") != std::string::npos) {
|
||||
board.PrintNNUE();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (input.find("datagen") != std::string::npos) {
|
||||
DATAGEN::Run(500000*2, 22);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user