A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine communication
When generating board SVGs with a border around the board, then the border displaces the squares but not the pieces. That results in the pieces being drawn of center from their squares.
A lichess puzzle rendered with border, the pieces are of center to the top left:
The same position without border, the pieces are centered:
When generating board SVGs with a border around the board, then the border displaces the squares but not the pieces. That results in the pieces being drawn of center from their squares.
A lichess puzzle rendered with border, the pieces are of center to the top left:
The same position without border, the pieces are centered: