kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
26 lines (25 loc) • 990 B
Plain Text
Event = {Game with comments and NAGs}
[] -+<LONG {A comment with braces: ab{cd}ef\ghij 3 backslashes: \\\}
[] (1w) e4 (
[] (1b) e6 (
[] (2w) d4 (
[] (2b) a5 (
+---+---+---+---+---+---+---+---+
| r | n | b | q | k | b | n | r |
+---+---+---+---+---+---+---+---+
| | p | p | p | | p | p | p |
+---+---+---+---+---+---+---+---+
| | | | | p | | | |
+---+---+---+---+---+---+---+---+
| p | | | | | | | |
+---+---+---+---+---+---+---+---+
| | | | P | P | | | |
+---+---+---+---+---+---+---+---+
| | | | | | | | |
+---+---+---+---+---+---+---+---+
| P | P | P | | | P | P | P |
+---+---+---+---+---+---+---+---+
| R | N | B | Q | K | B | N | R |
+---+---+---+---+---+---+---+---+
w KQkq -
{Line}{4 plies}