UNPKG

kokopu

Version:

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

25 lines (24 loc) 918 B
Event = {Game with linebreaks in comments} [start] -+<LONG [1w] (1w) e4 (#hm=0) [clk = {01:56:25}] [1b] (1b) e5 (#hm=0) {I am comment\ with a degenerated backslash followed by a linebreak} [2w] (2w) d4 (#hm=0) {I am comment with a linebreak} +---+---+---+---+---+---+---+---+ | 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}{3 plies}