UNPKG

kokopu

Version:

A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.

28 lines (27 loc) 908 B
Event = {Game with null moves} [start] -+<LONG [1w] (1w) e4 (#hm=0) [1b] (1b) -- (#hm=0) [2w] (2w) d4 (#hm=0) [2b] (2b) Nf6 (#hm=1) [3w] (3w) -- (#hm=1) [3b] (3b) Nc6 (#hm=2) +---+---+---+---+---+---+---+---+ | r | | b | q | k | b | | r | +---+---+---+---+---+---+---+---+ | p | p | p | p | p | p | p | p | +---+---+---+---+---+---+---+---+ | | | n | | | n | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | P | P | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | P | P | P | | | P | P | P | +---+---+---+---+---+---+---+---+ | R | N | B | Q | K | B | N | R | +---+---+---+---+---+---+---+---+ w KQkq - {Line}{6 plies}