kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
45 lines (44 loc) • 1.72 kB
Plain Text
Event = {Game with annotations 2}
[] -+<LONG $10
[] (1w) e4 (
[] (1b) e5 (
[] (2w) Nf3 (
[] (2b) Nc6 (
[] (3w) Bc4 (
[] (3b) Bc5 (
[] (4w) c3 (
[] (4b) Nf6 (
[] (5w) d4 (
[] (5b) exd4 (
[] (6w) cxd4 (
|
[] +---+ {You should not see in PGN this since there is no move in the variation...}
|
[] (6b) Bb4+ (
|
[] +---+ {}
|
[] (7w) Nc3 (
|
[] +---+ { }
|
[] (7b) O-O (
+---+---+---+---+---+---+---+---+
| r | | b | q | | r | k | |
+---+---+---+---+---+---+---+---+
| p | p | p | p | | p | p | p |
+---+---+---+---+---+---+---+---+
| | | n | | | n | | |
+---+---+---+---+---+---+---+---+
| | | | | | | | |
+---+---+---+---+---+---+---+---+
| | b | B | P | P | | | |
+---+---+---+---+---+---+---+---+
| | | N | | | N | | |
+---+---+---+---+---+---+---+---+
| P | P | | | | P | P | P |
+---+---+---+---+---+---+---+---+
| R | | B | Q | K | | | R |
+---+---+---+---+---+---+---+---+
w KQ -
{Line}{14 plies}