datagen could get in an inf loop if random moves resulted in game over

This commit is contained in:
rektdie committed 2025-04-15 14:27:19 +02:00
1 parent 55b73dc85d
commit c6eb3f464b
3 files changed
+43 -28

No files matched your search

+7
View File
@@ -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;
}
}
}