Chess::Plisco is a representation of a chess position in Perl. It also contains a UCI compatible chess engine.
It only works with Perl versions that are compiled with support for 64 bit integers!
The software is stable but still considered work in progress.
Since it is reasonably fast and offers a lot of functionality needed for chess engines, it can be used for rapid prototyping of a chess engine. Writing a basic implementation of the AlphaBeta algorithm with Chess::Plisco will not require more than 30 lines of code.
Chess::Plisco
The library also has a very high test coverage so that you can probably use it as a reference implementation for your own experiments and tests.
Apart from Perl (which ships with your operating system unless you use MS-DOS aka MS Windows), the software has little dependencies:
LLhttps://github.com/Perl-Critic/PPI
LLhttps://github.com/gflohr/libintl-perl from LLhttp://www.guido-flohr.net/en/projects/#libintl-perl
Probably both dependencies are available for your system. Search your package manager for "PPI" and "libintl-perl".
Alternatively, install the command "cpanm" and do:
$ cpanm Chess::Plisco
This installs the last release of the software.
If you want to use the latest sources from git, build and install it with the usual sequence of commands:
$ perl Makefile.PL $ make $ make install
See the "Chess/Plisco/Tutorial.pod" in lib for a gentle introduction to the library. When installed, you can also try the command perldoc Chess::Plisco::Tutorial.
perldoc Chess::Plisco::Tutorial
Reference documentation is available for "Chess/Plisco.pod" in lib (perldoc Chess::Plisco) and "Chess/Plisco/Macro.pod" in lib (perldoc Chess::Plisco::Macro).
perldoc Chess::Plisco
perldoc Chess::Plisco::Macro
The chess engine is started with the command "plisco". You can also run it from inside the repository like this:
$ perl -Ilib bin/plisco
The engine needs several seconds to come up because the source code of the engine and the library are parsed and the macros contained expanded.
Like almost all chess engines, plisco does not come with a graphical user interface. Try using one of these:
LLhttps://cutechess.com/ (Linux, MacOS, and Windows)
LLhttps://banksiagui.com/ (Linux, MacOS, and Windows)
LLhttp://www.playwitharena.de/ (Linux, Windows)
Copyright (C) 2021, Guido Flohr, mailto:guido.flohr@cantanea.com, all rights reserved.
To install Chess::Plisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chess::Plisco
CPAN shell
perl -MCPAN -e shell install Chess::Plisco
For more information on module installation, please visit the detailed CPAN module installation guide.