Skip to content

Commit

Permalink
Prepare release of v0.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Nov 2, 2016
1 parent bba8cfb commit 50f2f71
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -6,6 +6,13 @@ is more important to get things right than to be consistent with previous
versions. Use this changelog to see what changed in a new release, because this
might include API breaking changes.

New in v0.15.4
--------------

New features:

* Highlight last move and checks when rendering board SVGs.

New in v0.15.3
--------------

Expand Down
2 changes: 1 addition & 1 deletion chess/__init__.py
Expand Up @@ -26,7 +26,7 @@

__email__ = "niklas.fiekas@backscattering.de"

__version__ = "0.15.3"
__version__ = "0.15.4"

import copy
import re
Expand Down
3 changes: 3 additions & 0 deletions chess/svg.py
Expand Up @@ -95,6 +95,9 @@ def board(board=None, squares=None, flipped=False, coordinates=True, lastmove=No
:param squares: A :class:`chess.SquareSet` with selected squares.
:param flipped: Pass ``True`` to flip the board.
:param coordinates: Pass ``False`` to disable coordinates in the margin.
:param lastmove: A :class:`chess.Move` to be highlighted.
:param check: A square to be marked as check.
:param size: The width and height of the image.
:param style: CSS to use instead of the default stylesheet.
Custom verbatim XML can be added before (*pre*) and after (*post*) all
Expand Down

3 comments on commit 50f2f71

@mjm128
Copy link

@mjm128 mjm128 commented on 50f2f71 Nov 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks really nice. One suggestion is a differentiation between check and checkmate so that it's quick to tell the difference visually!

@niklasf
Copy link
Owner Author

@niklasf niklasf commented on 50f2f71 Nov 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw. the current design is taken from lichess.org. Got a suggestion of how to do this in a visually clean way?

@mjm128
Copy link

@mjm128 mjm128 commented on 50f2f71 Nov 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps something simple like orange=check, red = checkmate?

Please sign in to comment.