UNPKG

kokopu

Version:

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

33 lines (32 loc) 1.02 kB
White = {Player 1} Black = {Player 2} Event = {Scholar's mate} Site = {*} Date = {2013-**-**} [start] -+<LONG [1w] (1w) e4 (#hm=0) [1b] (1b) e5 (#hm=0) [2w] (2w) Bc4 (#hm=1) [2b] (2b) Nc6 (#hm=2) [3w] (3w) Qh5 (#hm=3) [3b] (3b) Nf6 (#hm=4) [4w] (4w) Qxf7# (#hm=0) +---+---+---+---+---+---+---+---+ | r | | b | q | k | b | | r | +---+---+---+---+---+---+---+---+ | p | p | p | p | | Q | p | p | +---+---+---+---+---+---+---+---+ | | | n | | | n | | | +---+---+---+---+---+---+---+---+ | | | | | p | | | | +---+---+---+---+---+---+---+---+ | | | B | | P | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | P | P | P | P | | P | P | P | +---+---+---+---+---+---+---+---+ | R | N | B | | K | | N | R | +---+---+---+---+---+---+---+---+ b KQkq - {White wins}{7 plies}