bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
223 stars 78 forks source link

Support For board state to Image #101

Closed jalpp closed 2 years ago

jalpp commented 2 years ago

It be nice if the lib supports image generation based on board state printing out the board state is good for logging but sharing a chess board in image format is more useful

Thanks

Oziomajnr commented 2 years ago

Might be a big ask from a chess library, but I implemented something similar for android here https://github.com/Oziomajnr/PgnToGif/blob/main/app/src/main/java/com/chunkymonkey/pgntogifconverter/converter/ChessBoardToBitmapConverter.kt it converts a board state to Bitmap, the implementation can be adapted to suit your need.