Chess-related stuff in Perl 6
Switch branches/tags
Nothing to show
Clone or download
grondilu Merge pull request #5 from samcv/SPDX-license
Use SPDX identifier in license field of META6.json
Latest commit 3dc93dc Apr 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib adding action class to generate Wikipedia diagrams Nov 22, 2016
t various changes Dec 31, 2014
.travis.yml add travis and fix link in README Oct 13, 2015
LICENSE first commit Jul 3, 2014
META6.json Use SPDX identifier in license field of META6.json Apr 26, 2017
README.md adding a show-FEN function Nov 30, 2015

README.md

Chess

Chess-related stuff in Perl 6

PGN Grammar

use Chess::PGN;
say Chess::PGN.parse: "1. f3 e5 2. g4?? Qh4#";

FEN Grammar

use Chess::FEN;
say Chess::FEN.parse('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1');

See the wikipedia article about FEN for more information.

General utilities

use Chess;
show-FEN 'rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1';

Hopefully the code above should produce a nice colored representation of the board position