Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nice to have svg or png support #15

Open
sugizo opened this issue Aug 31, 2023 · 1 comment
Open

nice to have svg or png support #15

sugizo opened this issue Aug 31, 2023 · 1 comment

Comments

@sugizo
Copy link

sugizo commented Aug 31, 2023

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
Copy link
Owner

miskibin commented Sep 1, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants