From c271145467afa568f234d6a69f79e5db46ff6680 Mon Sep 17 00:00:00 2001 From: Gahtan Nahdi <155860115+gahtan-syarif@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:34:59 +0700 Subject: [PATCH 1/3] Update games.py --- worker/games.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/worker/games.py b/worker/games.py index 1a33f8406..a528ea880 100644 --- a/worker/games.py +++ b/worker/games.py @@ -999,7 +999,7 @@ def shorten_hash(match): print(line, flush=True) # Have we reached the end of the match? Then just exit. - if "Finished match" in line: + if "Saved results." in line: if num_games_updated == games_to_play: print("Finished match cleanly") else: @@ -1567,8 +1567,12 @@ def make_player(arg): os.path.join(testing_dir, fastchess), "-recover", "-repeat", + "-ratinginterval", + "0", + "-autosaveinterval", + "0", "-games", - str(int(games_to_play)), + str(int(games_to_play) / 2), "-tournament", "gauntlet", ] From 81208b94df4677cde0185035ad5f563ec9652156 Mon Sep 17 00:00:00 2001 From: Gahtan Nahdi <155860115+gahtan-syarif@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:02:47 +0700 Subject: [PATCH 2/3] floor division --- worker/games.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/games.py b/worker/games.py index a528ea880..1d2b2a433 100644 --- a/worker/games.py +++ b/worker/games.py @@ -1572,7 +1572,7 @@ def make_player(arg): "-autosaveinterval", "0", "-games", - str(int(games_to_play) / 2), + str(int(games_to_play) // 2), "-tournament", "gauntlet", ] From 3c78b1a1c690e9a0d610d77945500c646b6d3222 Mon Sep 17 00:00:00 2001 From: Gahtan Nahdi <155860115+gahtan-syarif@users.noreply.github.com> Date: Thu, 11 Jul 2024 20:22:10 +0700 Subject: [PATCH 3/3] Update games.py --- worker/games.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/worker/games.py b/worker/games.py index 1d2b2a433..45ab49294 100644 --- a/worker/games.py +++ b/worker/games.py @@ -999,7 +999,7 @@ def shorten_hash(match): print(line, flush=True) # Have we reached the end of the match? Then just exit. - if "Saved results." in line: + if "Finished match" in line: if num_games_updated == games_to_play: print("Finished match cleanly") else: @@ -1567,11 +1567,9 @@ def make_player(arg): os.path.join(testing_dir, fastchess), "-recover", "-repeat", - "-ratinginterval", - "0", - "-autosaveinterval", - "0", "-games", + "2", + "-rounds", str(int(games_to_play) // 2), "-tournament", "gauntlet",