Snow Flower Text supports the expression of chess piece placement as an extension of AsciiDoc. FEN (Forsyth-Edwards Notation) textual notation allows you to graphically represent chess piece placement in an AsciiDoc document. This feature is a unique extension of Snow Flower Text.
FEN is a standard notation for placing pieces in chess. It can be copied via the clipboard from any chess application that supports FEN. |
This entry will explain how to use the drawing for chess piece placement.
How to
To express the arrangement of chess pieces, write the FEN code in the [fen]
block of AsciiDoc.
Select AsciiDoc for the syntax.
Write the FEN code in the
fen
block.that’s all.
.Lopez Opening
[fen, width=60%]
----------
rnbqkbnr/pppp1ppp/8/4p3/4P3/2P5/PP1P1PPP/RNBQKBNR b KQkq - 0 2
----------
Flip the board
You can flip the direction of the chess board by specifying the flip=true attribute
Color theme
You can change the color scheme of the chess board by specifying the theme attribute. One of the following can be specified.
black
yellow
green
blue
[fen, theme=blue]
----------
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
----------