miskibin / py-draughts

A checkers library with modern web GUI, Supprots multiple variants of game.
https://michalskibinski109.github.io/py-draughts/
GNU General Public License v3.0
8 stars 2 forks source link

nice to have svg or png support #15

Open sugizo opened 1 year ago

sugizo commented 1 year ago

nice to have svg or png support

like in python-chess, when execute board it will get svg or png draw but when execute print(board), it will show the ASCII, like py-draughts already have board

 . . . . . B . w . .
 . . . . . . . . . .
 . w . . . . . . . .
 . . . . . . . . . .
 . b . . . . . . . .
 . . b . w . . . . .
 . w . b . W . W . .
 . . . . w . . . w .
 . W . . . w . W . w
 W . w . . . . . . .

ref https://python-chess.readthedocs.io/en/latest/

best regards

miskibin commented 1 year ago

@sugizo This is good idea, although adding support for new variants is currently our top priority. However, you are more than welcome to contribute to the project. The code you need can mostly be found in this file: https://github.com/niklasf/python-chess/blob/master/chess/svg.py.