kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
44 lines (43 loc) • 1.56 kB
Plain Text
Event = {Game with promoted variation.}
[] -+<LONG
[] (1w) e4 (
[] (1b) d5 (
|
[] +---+
[] | (1b) c5 (
|
[] +---+
[] | (1b) e5 (
[] | (2w) Nf3 (
|
[] +---+
[] | (1b) c6 (
|
[] +---+
[] | (1b) g6 (
|
[] +---+
[] | (1b) d6 (
[] | (2w) d4 (
|
[] (2w) exd5 (
[] (2b) Qxd5 (
+---+---+---+---+---+---+---+---+
| r | n | b | | k | b | n | r |
+---+---+---+---+---+---+---+---+
| p | p | p | | p | p | p | p |
+---+---+---+---+---+---+---+---+
| | | | | | | | |
+---+---+---+---+---+---+---+---+
| | | | q | | | | |
+---+---+---+---+---+---+---+---+
| | | | | | | | |
+---+---+---+---+---+---+---+---+
| | | | | | | | |
+---+---+---+---+---+---+---+---+
| P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
| R | N | B | Q | K | B | N | R |
+---+---+---+---+---+---+---+---+
w KQkq -
{Line}{4 plies}