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

lc0 bug fixes and lichess pgn bug fix #79

Closed kennyfrc closed 3 years ago

kennyfrc commented 3 years ago

This proposes minor bug fixes on chess-artist.

  1. Lc0 Checkmate Bug Fix

When using lc0 as the engine, a checkmate event will return a NoneType. This affects both SearchScore and StaticScore. I added a condition wherein if the score is None, then return 0, which is the same evaluation of Stockfish.

  1. Lichess PGN Bug Fix

Lichess assigns the "Standard" variant for regular chess. Added a condition that allows people to use lichess pgns. The current version rejects lichess pgns.

fsmosca commented 3 years ago

Thanks, I will check these changes.