From cfe2a278c0784f4c3ad1dbda26d358111d077af0 Mon Sep 17 00:00:00 2001 From: Hans Ekbrand Date: Sun, 5 May 2024 23:57:10 +0200 Subject: [PATCH] Save undecided games as draws --- src/selfplay/game.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/selfplay/game.cc b/src/selfplay/game.cc index 68554c2fc3..ee23e9e21e 100644 --- a/src/selfplay/game.cc +++ b/src/selfplay/game.cc @@ -155,6 +155,7 @@ void SelfPlayGame::Play(int white_threads, int black_threads, bool training, if (game_result_ != GameResult::UNDECIDED) break; if (tree_[0]->GetPositionHistory().Last().GetGamePly() >= 450) { adjudicated_ = true; + game_result_ = GameResult::DRAW; break; } // Initialize search.