fsmosca / chess-artist

A python script that can annotate chess games in pgn file with static evaluation or search score of an engine, can annotate an epd file with acd, acs, bm, and ce opcodes, can test engine with epd test suite and can generate chess puzzles.
GNU General Public License v3.0
69 stars 18 forks source link

Update chess-artist.py #42

Closed alxlk closed 5 years ago

alxlk commented 5 years ago

Static Evaluation didn't work for me as eval outputs 'Total evaluation: ' instead of 'Total Evaluation: '

fsmosca commented 5 years ago

It seems like latest Stockfish changes to Total evaluation.

Could you revise your patch to something like.

if 'total evaluation' in line.lower():
    ...

This way "Total Evaluation" and "Total evaluation" will be catched.

alxlk commented 5 years ago

Yes, you are right, done! Please check if I did it correctly as I'm not expert in using PR's.