This class can be used to render chess boards
from piece positions in the FEN format (Forsyth-Edwards Notation). It
parses a string in the FEN format to retrieve the positions of the
piece positions in a chess board.
Class: fen2Diagram
Detailed description
This class can be used to render chess board diagrams from piece positions in the FEN format (Forsyth-Edwards Notation).
It parses a string in the FEN format to retrieve the piece positions in a chess board.
The class generates an image with an empty board and icons of the images of each piece in the board and the respective position.
The generated board image can be served as the current script output in JPEG, GIF or PNG format.
|