Skip to content

grondilu/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess

Chess-related stuff in Raku

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

Displaying a chess position

use Chess;
show Chess::startpos;

Hopefully the code above should produce a nice representation of the starting position

This requires :

TODO

  • implement rules of the game
  • interface Stockfish
  • make Board image internally, not relying on lichess
  • opening and tactics trainer
  • game database management
  • translate Chess.js

About

Chess-related stuff in raku

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages