Skip to content

python-chess v1.4.0

Compare
Choose a tag to compare
@niklasf niklasf released this 25 Jan 12:24
· 481 commits to master since this release
v1.4.0
New features:

* Let ``chess.pgn.GameNode.eval()`` accept PGN comments like
  ``[%eval 2.5,11]``, meaning 250 centipawns at depth 11.
  Use ``chess.pgn.GameNode.eval_depth()`` and
  ``chess.pgn.GameNode.set_eval(..., depth)`` to get and set the depth.
* Read and write PGN comments with millisecond precision like
  ``[%clk 1:23:45.678]``.

Changes:

* Recover from invalid UTF-8 sent by an UCI engine, by ignoring that
  (and only that) line.