Skip to content

Commit

Permalink
Fix console output
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmosca committed Mar 8, 2021
1 parent 770f147 commit 11636ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chess_artist.py
Expand Up @@ -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']


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 11636ee

Please sign in to comment.