UNPKG

kokopu

Version:

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

52 lines (51 loc) 1.75 kB
Event = {Custom initial position} +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | k | | | | | | +---+---+---+---+---+---+---+---+ | p | | P | | | | | | +---+---+---+---+---+---+---+---+ | P | | K | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ w - - Initial move number = {60} [start] -+<LONG [60w] (60w) Kd5 (#hm=1) [60b] (60b) Kc8 (#hm=2) [61w] (61w) Kd4 (#hm=3) [61b] (61b) Kd8 (#hm=4) [62w] (62w) Kc4 (#hm=5) [62b] (62b) Kc8 (#hm=6) [63w] (63w) Kd5 (#hm=7) [63b] (63b) Kc7 (#hm=8) [64w] (64w) Kc5 (#hm=9) [64b] (64b) Kc8 (#hm=10) [65w] (65w) Kb6 (#hm=11) $18 +---+---+---+---+---+---+---+---+ | | | k | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | p | K | P | | | | | | +---+---+---+---+---+---+---+---+ | P | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ | | | | | | | | | +---+---+---+---+---+---+---+---+ b - - {White wins}{11 plies}