I need to save an image of a chessboard, like the one created by this code:
import chess
board = chess.Board()
board
The output is the starting chessboard:
How can I save this image and print it (for example inside a function)? Is there a unique package for these things in python? If I try to print the board (typing print (board)
) I get a string that presents the chessboard, not the same photo.