Skip to content

imanghafoori1/Python-Puzzle-Creator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Puzzle-Creator

About

This is a python application dedicated to creating chess puzzles for lichess.org. However it can easily be adapted to create puzzles from personal games.

Installation

This script requires the Requests and Python-Chess libraries to run, as well as a copy of Stockfish

Install Requests

pip install requests

Install Python Chess

pip install python-chess

Setup

MacOS / Linux : sh build-stockfish.sh to obtain the current lichess Stockfish instance.

Launching Application

python main.py <Secret API Token> <#Threads = 4> <Hash (MBytes) = 2048>

If your system has systemd, you can use the service file provided, it is tuned for a local virtualenv in a dedicated user account. If you run it as root with system-wide pip packages, use ExecStart=/usr/bin/python main.py --quiet $key $instance $threads

About

Creates JSON chess puzzles from PGN chess games.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 3.0%