Skip to main content

Chess

Displays a chess position on a board. Useful for showing an opening, a tactics problem, or a specific moment in a game.

Syntax

```chess
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
```

The content of the code block is a FEN (Forsyth-Edwards Notation) string: the standard text representation of the pieces on the board, whose turn it is, and castling/en passant rights.

What it's for

Showing a position statically. The example above is the starting position.

Source

The syntax of FEN notation is widely documented on Wikipedia and in chess engine documentation (e.g. "Forsyth-Edwards Notation"). The visualization library Tsunagi uses: github.com/shaack/cm-chessboard.

Tsunagi-specific note

Only static position display is supported; there's no move input or interaction, just FEN. The PGN (move list) format isn't supported, only FEN. The board colors are fixed and independent of the app's light/dark theme (chess's own black/white coloring is a built-in rule that doesn't get inverted with the theme).