From 211bd85e8de2237e06fff5acd0a16348f76a6d85 Mon Sep 17 00:00:00 2001 From: jjoshua2 Date: Thu, 14 Nov 2019 09:30:05 -0500 Subject: [PATCH] Update rescore_logic.py Untested --- rescore_logic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rescore_logic.py b/rescore_logic.py index baaa64b..8050d8a 100644 --- a/rescore_logic.py +++ b/rescore_logic.py @@ -211,6 +211,7 @@ async def score_file(data, engine, num_nodes=1): board.push(m) board = board.mirror() + board.halfmove_clock = current_encoding.rule50_count # This is a super ugly hack to solve the off-by-one problem iterating through pairwise gives me, just to get this thing working. if rescored_game and len(board.piece_map()) > 5: