UNPKG

kokopu

Version:

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

31 lines (30 loc) 1.09 kB
Event = {Multi-part comment} [start] -+<LONG [1w] (1w) e4 (#hm=0) [1b] (1b) e6 (#hm=0) {I thought he would play Caro-Kann but French is OK either}<LONG | [1b-v0-start] +---+ [1b-v0-1b] | (1b) c6 (#hm=0) | [2w] (2w) d4 (#hm=0) [2b] (2b) d5 (#hm=0) {and now... advance variation} [3w] (3w) e5 (#hm=0) +---+---+---+---+---+---+---+---+ | r | n | b | q | k | b | n | r | +---+---+---+---+---+---+---+---+ | p | p | p | | | p | p | p | +---+---+---+---+---+---+---+---+ | | | | | p | | | | +---+---+---+---+---+---+---+---+ | | | | p | P | | | | +---+---+---+---+---+---+---+---+ | | | | P | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | P | P | P | | | P | P | P | +---+---+---+---+---+---+---+---+ | R | N | B | Q | K | B | N | R | +---+---+---+---+---+---+---+---+ b KQkq - {Line}{5 plies}