UNPKG

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
Event = {Castling with character 0 instead of character O} [start] -+<LONG [1w] (1w) e4 (#hm=0) [1b] (1b) e5 (#hm=0) [2w] (2w) Nf3 (#hm=1) [2b] (2b) Nf6 (#hm=2) [3w] (3w) Bc4 (#hm=3) [3b] (3b) Bc5 (#hm=4) [4w] (4w) O-O (#hm=5) +---+---+---+---+---+---+---+---+ | 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}