Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python-chess to 1.0.1 #2333

Merged
merged 1 commit into from
Sep 26, 2020

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Sep 24, 2020

This PR updates python-chess from 0.31.4 to 1.0.1.

Changelog

1.0.1

-------------

Bugfixes:

* `chess.svg`: Restore SVG Tiny compatibility by splitting colors like
`rrggbbaa` into a solid color and opacity.

1.0.0

-------------

Changes:

* Now requires Python 3.7+.
* `chess.engine` will now cut off illegal principal variations at the first
illegal move instead of discarding them entirely.
* `chess.engine.EngineProtocol` renamed to `chess.engine.Protocol`.
* `chess.engine.Option` is no longer a named tuple.
* Renamed `chess.gaviota` internals.
* Relaxed type annotations of `chess.pgn.GameNode.variation()` and related
methods.
* Changed default colors of `chess.svg.Arrow` and
`chess.pgn.GameNode.arrows()`. These can be overriden with the new
`chess.svg.board(..., colors)` feature.
* Documentation improvements. Will now show type aliases like `chess.Square`
instead of `int`.

Bugfixes:

* Fix insufficient material with same-color bishops on both sides.
* Clarify that `chess.Board.can_claim_draw()` and related methods refer to
claims by the player to move. Three-fold repetition could already be claimed
before making the final repeating move. `chess.Board.can_claim_fifty_moves()`
now also allows a claim before the final repeating move. The previous
behavior is `chess.Board.is_fifty_moves()`.
* Fix parsing of green arrows/circles in `chess.pgn.GameNode.arrows()`.
* Fix overloaded type signature of `chess.engine.Protocol.engine()`.

New features:

* Added `chess.parse_square()`, to be used instead of
`chess.SQUARE_NAMES.index()`.
* Added `chess.Board.apply_mirror()`.
* Added `chess.svg.board(..., colors)`, to allow overriding the default theme.
Links

Resolves #2334

@Harmon758 Harmon758 merged commit 8096c6e into rewrite Sep 26, 2020
@Harmon758 Harmon758 deleted the pyup-update-python-chess-0.31.4-to-1.0.1 branch September 26, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants