UNPKG

kokopu

Version:

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

43 lines (42 loc) 1.47 kB
White = {Bill Gates} Black = {Magnus Carlsen} Event = {TV Show} Date = {2014-01-23} [start] -+<LONG [1w] (1w) e4 (#hm=0) [1b] (1b) Nc6 (#hm=1) [2w] (2w) Nf3 (#hm=2) [2b] (2b) d5 (#hm=0) [3w] (3w) Bd3 (#hm=1) [3b] (3b) Nf6 (#hm=2) [4w] (4w) exd5 (#hm=0) [4b] (4b) Qxd5 (#hm=0) [5w] (5w) Nc3 (#hm=1) [5b] (5b) Qh5 (#hm=2) [6w] (6w) O-O (#hm=3) [6b] (6b) Bg4 (#hm=4) [7w] (7w) h3 (#hm=0) [7b] (7b) Ne5 (#hm=1) [8w] (8w) hxg4 (#hm=0) [8b] (8b) Nfxg4 (#hm=0) [9w] (9w) Nxe5 (#hm=0) [9b] (9b) Qh2# (#hm=1) +---+---+---+---+---+---+---+---+ | r | | | | k | b | | r | +---+---+---+---+---+---+---+---+ | p | p | p | | p | p | p | p | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | N | | | | +---+---+---+---+---+---+---+---+ | | | | | | | n | | +---+---+---+---+---+---+---+---+ | | | N | B | | | | | +---+---+---+---+---+---+---+---+ | P | P | P | P | | P | P | q | +---+---+---+---+---+---+---+---+ | R | | B | Q | | R | K | | +---+---+---+---+---+---+---+---+ w kq - {Black wins}{18 plies}