Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grondilu/chess
Chess-related stuff in raku
https://github.com/grondilu/chess
chess raku
Last synced: 2 months ago
JSON representation
Chess-related stuff in raku
- Host: GitHub
- URL: https://github.com/grondilu/chess
- Owner: grondilu
- License: artistic-2.0
- Created: 2014-07-03T13:17:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T09:09:36.000Z (about 1 year ago)
- Last Synced: 2024-07-30T20:11:41.188Z (6 months ago)
- Topics: chess, raku
- Language: Raku
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chess
Chess-related stuff in Raku
## PGN Grammar
```raku
use Chess::PGN;
say Chess::PGN.parse: "1. f3 e5 2. g4?? Qh4#";
```## FEN Grammar
```raku
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](http://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation) for more information.
## General utilities
```raku
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](http://i.imgur.com/tbiUqwK.png)