From 62359f7907f8e6fd05d9b7b8e758ae0fe7bd48f3 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 20 Apr 2025 11:08:27 +0200 Subject: [PATCH] now playing 8-9 random moves instead of 8 | bench 1422551 --- source/datagen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/datagen.cpp b/source/datagen.cpp index ad6a506..0d1369b 100644 --- a/source/datagen.cpp +++ b/source/datagen.cpp @@ -61,8 +61,11 @@ static bool IsGameOver(Board &board, SEARCH::SearchContext& ctx) { static void PlayRandMoves(Board &board, SEARCH::SearchContext& ctx) { std::random_device dev; std::mt19937_64 rng(dev()); + + std::uniform_int_distribution moveDist(0, 1); + bool plusOne = moveDist(rng); - for (int count = 0; count < RAND_MOVES; count++) { + for (int count = 0; count < RAND_MOVES + plusOne; count++) { MOVEGEN::GenerateMoves(board); std::uniform_int_distribution dist(0, board.currentMoveIndex - 1);