python-chess
python-chess copied to clipboard
Feature request: new argument for chess.svg.board()
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.
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)
Sorry, I don't think it makes sense as part of the SVG for most users.