UNPKG

kokopu

Version:

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

37 lines (36 loc) 1.28 kB
Event = {Game with null-moves} [start] -+<LONG [1w] (1w) e4 (#hm=0) [1b] (1b) -- (#hm=0) [2w] (2w) d4 (#hm=0) [2b] (2b) d5 (#hm=0) [3w] (3w) -- (#hm=0) [3b] (3b) e5 (#hm=0) [4w] (4w) Nf3 (#hm=1) [4b] (4b) Ne7 (#hm=2) [5w] (5w) Nxe5 (#hm=0) [5b] (5b) -- (#hm=0) [6w] (6w) Nd7 (#hm=1) [6b] (6b) -- (#hm=1) [7w] (7w) Bb5 (#hm=2) [7b] (7b) -- (#hm=2) [8w] (8w) Nf6# (#hm=3) +---+---+---+---+---+---+---+---+ | r | n | b | q | k | b | | r | +---+---+---+---+---+---+---+---+ | p | p | p | | n | p | p | p | +---+---+---+---+---+---+---+---+ | | | | | | N | | | +---+---+---+---+---+---+---+---+ | | B | | p | | | | | +---+---+---+---+---+---+---+---+ | | | | P | P | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | P | P | P | | | P | P | P | +---+---+---+---+---+---+---+---+ | R | N | B | Q | K | | | R | +---+---+---+---+---+---+---+---+ b KQkq - {White wins}{15 plies}