python-chess icon indicating copy to clipboard operation
python-chess copied to clipboard

Feature request: new argument for chess.svg.board()

Open toolonely opened this issue 10 months ago • 1 comments

I would like a show_FEN: bool = False argument that will explicitly draw the FEN string either above or below the board in the resulting svg code. Thanks.

toolonely avatar Mar 26 '24 13:03 toolonely

On a second thought, if the board isn't loaded with a FEN, but with a game (sequence of moves), I'd also like the last move that was made displayed. And if it's Black's turn, it has to be specified as well, so the generated image resembles a diagram in chess books (which assume White's move by default, but specify it's Black's move when it is)

toolonely avatar Mar 28 '24 00:03 toolonely

Sorry, I don't think it makes sense as part of the SVG for most users.

niklasf avatar Jul 19 '24 15:07 niklasf