kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
20 lines (19 loc) • 693 B
Plain Text
> +---+---+---+---+---+---+---+---+
> 8 | r | | b | q | k | b | n | r |
> +---+---+---+---+---+---+---+---+
> 7 | p | p | p | p | | p | p | p |
> +---+---+---+---+---+---+---+---+
> 6 | | | n | | | | | |
> +---+---+---+---+---+---+---+---+
> 5 | | B | | | p | | | |
> +---+---+---+---+---+---+---+---+
> 4 | | | | | P | | | |
> +---+---+---+---+---+---+---+---+
> 3 | | | | | | N | | |
> +---+---+---+---+---+---+---+---+
> 2 | P | P | P | P | | P | P | P |
> +---+---+---+---+---+---+---+---+
> 1 | R | N | B | Q | K | | | R |
> +---+---+---+---+---+---+---+---+
> a b c d e f g h
> b KQkq -