Chess board representation

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.

  1. Select AsciiDoc for the syntax.

  2. Write the FEN code in the fen block.

  3. that’s all.

.Lopez Opening
[fen, width=60%]
----------
rnbqkbnr/pppp1ppp/8/4p3/4P3/2P5/PP1P1PPP/RNBQKBNR b KQkq - 0 2
----------
Lopez Opening

Flip the board

You can flip the direction of the chess board by specifying the flip=true attribute

flip=true

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

theme=black (default)
theme=yellow
theme=green
theme=blue