kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
29 lines (28 loc) • 983 B
Plain Text
Event = {Castling with character 0 instead of character O}
[] -+<LONG
[] (1w) e4 (
[] (1b) e5 (
[] (2w) Nf3 (
[] (2b) Nf6 (
[] (3w) Bc4 (
[] (3b) Bc5 (
[] (4w) O-O (
+---+---+---+---+---+---+---+---+
| r | n | b | q | k | | | r |
+---+---+---+---+---+---+---+---+
| p | p | p | p | | p | p | p |
+---+---+---+---+---+---+---+---+
| | | | | | n | | |
+---+---+---+---+---+---+---+---+
| | | b | | p | | | |
+---+---+---+---+---+---+---+---+
| | | B | | P | | | |
+---+---+---+---+---+---+---+---+
| | | | | | N | | |
+---+---+---+---+---+---+---+---+
| P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
| R | N | B | Q | | R | K | |
+---+---+---+---+---+---+---+---+
b kq -
{Black wins}{7 plies}