Skip to content

kraktus/CheckPuzzlesTb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CheckPuzzlesTb

A python script checking if Lichess puzzles with 7 or fewer pieces are correct according to the syzygy tablebase api.

Usage

python3 -m venv venv && source venv/bin/activate
python3 t.py --help
usage: t.py [-h] {filter,check,export,clean}

positional arguments:
  {filter,check,export,clean}
                        filter: 
                            Select all puzzles from `DB_PATH` that have at point <= 7 pieces on the board, and save them in file `PUZZLE_PATH`
                            
                        
                        check: 
                            Look at every puzzle in `PUZZLE_PATH`, minus the ones with mate tag, and check them gainst syzygy tb.
                            Save the results in `PUZZLE_CHECKED_PATH`, with every line being `<puzzle_id> <optional[error_1]> <optional[error_2]>...
                            
                        
                        export: 
                            Look at every puzzle in `PUZZLE_CHECKED_PATH`, and save the list of ids of the ones which are incorrect in `incorrect_puzzles_id.txt`.
                            
                        
                        clean: 
                            Remove all puzzles that are in `PUZZLE_CHECKED_PATH`, but not in `PUZZLE_PATH` anymore, which means they've been deleted on Lichess. /!\ Run `filter` command before
                            
                        

optional arguments:
  -h, --help            show this help message and exit

Installation

python3 -m venv venv && source venv/bin/activate
pip3 install -r requirements.txt

About

Confronts lichess puzzles V2 to syzygy tablebase

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages