NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #3441 most downloaded on PyPI
A chess library with move generation, move validation, and support for common formats.
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 3 months
Rarely documented
notes for 4 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
100 releases · first in 2013
Nothing published for this version
Added chess.pgn.GameNode.ply() and chess.pgn.GameNode.turn().
New features:
Added chess.Board.ply().
Added chess.pgn.GameNode.ply() and chess.pgn.GameNode.turn().
Added chess.engine.PovWdl, chess.engine.Wdl, and conversions from scores: chess.engine.PovScore.wdl(), chess.engine.Score.wdl().
Added chess.engine.Score.score(*, mate_score: int) -> int overload.
Changes:
The PovScore returned by chess.pgn.GameNode.eval() is now always relative to the side to move. The ambiguity around [%eval #0] has been resolved to Mate(-0). This makes sense, given that the authors of the specification probably had standard chess in mind (where a game-ending move is always a loss for the opponent). Previously, this would be parsed as None.
Typed chess.engine.InfoDict["wdl"] as the new chess.engine.PovWdl, rather than Tuple[int, int, int]. The new type is backwards compatible, but it is recommended to use its documented fields and methods instead.
Removed chess.engine.PovScore.__str__(). String representation falls back to __repr__.
The en_passant parameter of chess.Board.fen() and chess.Board.epd() is now typed as Literal["legal", "fen", "xfen"] rather than str.
One column per quarter.
Added chess.svg.board(..., orientation). This is a more idiomatic way to set the board orientation than flipped.
New features:
Added chess.svg.board(..., orientation). This is a more idiomatic way to set the board orientation than flipped.
Added chess.svg.Arrow.pgn() and chess.svg.Arrow.from_pgn().
Changes:
Further relaxed chess.Board.parse_san(). Now accepts fully specified moves like e2e4, even if that is not a pawn move, castling notation with zeros, null moves in UCI notation, and null moves in XBoard notation.
chess.svg: Restored SVG Tiny compatibility by splitting colors like #rrggbbaa into a solid color and opacity.
Bugfixes:
chess.svg: Restored SVG Tiny compatibility by splitting colors like #rrggbbaa into a solid color and opacity.
See CHANGELOG-OLD.rst for changes up to v1.0.0.
See CHANGELOG-OLD.rst for changes up to v1.0.0.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →