kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
33 lines (32 loc) • 1.23 kB
Plain Text
Event = {Game with annotations 1}
[] -+<LONG
[] (1w) e4 (
[] (1b) e5 (
[] (2w) Bc4 (
[] (2b) Nc6 (
[] (3w) Qh5 (
[] (3b) g6 (
|
[] +---+ {Other defenses are possible, for instance:}
[] | (3b) Nf6 (
|
[] (4w) Qf3 (
+---+---+---+---+---+---+---+---+
| r | | b | q | k | b | n | r |
+---+---+---+---+---+---+---+---+
| p | p | p | p | | p | | p |
+---+---+---+---+---+---+---+---+
| | | n | | | | p | |
+---+---+---+---+---+---+---+---+
| | | | | p | | | |
+---+---+---+---+---+---+---+---+
| | | B | | P | | | |
+---+---+---+---+---+---+---+---+
| | | | | | Q | | |
+---+---+---+---+---+---+---+---+
| P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
| R | N | B | | K | | N | R |
+---+---+---+---+---+---+---+---+
b KQkq -
{Line}{7 plies}