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