diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8fc0a432a..2c433f8ae 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,20 @@ Changelog for python-chess ========================== +New in v0.22.0 +-------------- + +Changes: + +* `len(board.legal_moves)` **replaced by** `board.legal_moves.count()`. + Previously `list(board.legal_moves)` was generating moves twice, resulting in + a considerable slowdown. Thanks to Martin C. Doege for reporting. +* XBoard: `offer_draw` renamed to `draw`. + +New features: + +* XBoard: Added `DrawHandler`. + New in v0.21.2 -------------- diff --git a/chess/__init__.py b/chess/__init__.py index 64c9241bb..1fab6923a 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -26,7 +26,7 @@ __email__ = "niklas.fiekas@backscattering.de" -__version__ = "0.21.2" +__version__ = "0.22.0" import collections import copy