chess
chess copied to clipboard
Feature request for shading feature
Very cool package.
A plotting feature I'd find useful is to highlight squares based on criteria. For example, if White has a pawn on d4, shade or color c5 and e5 as squares that the pawn could capture on next move. Maybe allow for modifiers like the number of moves forward to evaluate over (d4 could attack c5, e5, b6, d6, and f6 over the next two moves). Or instead of squares you could attack, you can shade squares you could move into (d4 can move to c5, d5, e5, b6, c6, d6, e6, f6 over next two moves).
Thanks for using {chess}
! Would implementing chess.svg.board
's arguments be enough?
https://python-chess.readthedocs.io/en/latest/svg.html#chess.svg.board