UNPKG

kokopu

Version:

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

39 lines (38 loc) 1.05 kB
White = {Light side} WhiteElo = {1942} WhiteTitle = {CM} Black = {Dark side} BlackElo = {2421} BlackTitle = {IM} Event = {An event name spanning several lines} Round = {1} SubRound = {12} SubSubRound = {7} Site = {Somewhere...} Date = {2021-09-04} Annotator = {The Annotator} ECO = {D42} Opening = {Sicilian Defense} OpeningVariation = {Dragon} OpeningSubVariation = {Yugoslav Attack} Termination = {adjudication} [start] -+<LONG +---+---+---+---+---+---+---+---+ | 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 | +---+---+---+---+---+---+---+---+ w KQkq - {Black wins}{0 plies}