Skip to content

luis1415/Kriegspiel

Repository files navigation

User interface and public API for probing Syzygy endgame tablebases.

Screenshot of the longest winning 6 piece endgame

Running

Dependencies (Python 3.5):

pip install aiohttp
pip install jinja2
pip install python-chess
pip install htmlmin  # recommended

Node.js:

npm install -g grunt-cli
npm install

Create combined JavaScript and CSS files using Grunt:

grunt

Start the server on port 5000:

python server.py

You can optionally copy config.default.ini to config.ini and adjust configuration variables. etc contains configuration examples for nginx and a systemd service.

Syzygy tablebase files

Only the small four-men tablebases are in this Git repository. Optionally generate or download five-men and six-men tablebases and configure the directories.

Gaviota tablebases

Optionally build and install libgtb and download Gaviota tablebase files. Put them into the gaviota directory or a configured path.

API

See https://syzygy-tables.info/apidoc for information about the JSON API.

Hacking

Have a look at server.py for server side code. The client side code is in static/js/client.js.

License

This project is licensed under the AGPLv3 with the following dependencies:

Thanks to all of them and special thanks to Ronald de Man for his endgame tablebases!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published