UNPKG

kokopu

Version:

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

22 lines (21 loc) 642 B
Event: Custom initial position (Black to play) +---+---+---+---+---+---+---+---+ | r | n | b | q | k | | | r | +---+---+---+---+---+---+---+---+ | p | p | p | p | | p | p | p | +---+---+---+---+---+---+---+---+ | | | | | | n | | | +---+---+---+---+---+---+---+---+ | | | b | | p | | | | +---+---+---+---+---+---+---+---+ | | | B | | P | | | | +---+---+---+---+---+---+---+---+ | | | | | | N | | | +---+---+---+---+---+---+---+---+ | P | P | P | P | | P | P | P | +---+---+---+---+---+---+---+---+ | R | N | B | Q | | R | K | | +---+---+---+---+---+---+---+---+ b kq - 4...O-O *