From 11636ee3ca240eea505e47041b905df104a05c13 Mon Sep 17 00:00:00 2001 From: fsmosca Date: Mon, 8 Mar 2021 16:47:55 +0800 Subject: [PATCH] Fix console output --- chess_artist.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/chess_artist.py b/chess_artist.py index b9ffb61..a5f5dcf 100644 --- a/chess_artist.py +++ b/chess_artist.py @@ -9,7 +9,7 @@ __author__ = 'fsmosca' __script_name__ = 'Chess Artist' -__version__ = 'v2.25.0' +__version__ = 'v2.26.0' __credits__ = ['alxlk', 'ddugovic', 'huytd', 'kennyfrc', 'python-chess'] @@ -1986,11 +1986,11 @@ def AnnotatePgn(self): self.jobType == 'analyze'): engBestMove, engBestScore, complexityNumber, moveChanges, pvLine = self.GetSearchScoreBeforeMove(curFen, side) - # Update info in console. - if sanMove == engBestMove: - print(f'Game move: {sanMove} ({engBestScore}), Engine bestmove: {engBestMove} ({engBestScore})') - else: - print(f'Game move: {sanMove} ({posScore}), Engine bestmove: {engBestMove} ({engBestScore})') + # Update info in console. + if sanMove == engBestMove: + print(f'Game move: {sanMove} ({engBestScore}), Engine bestmove: {engBestMove} ({engBestScore})') + else: + print(f'Game move: {sanMove} ({posScore}), Engine bestmove: {engBestMove} ({engBestScore})') # (5.1) Calculate the threat move if game move and engine best # move is the same and the position is complex and the engine