An open API service indexing awesome lists of open source software.

https://github.com/sebzanardo/chess-puzzle-evaluator

A script to evaluate a chess pgn file using Stockfish
https://github.com/sebzanardo/chess-puzzle-evaluator

chess pgn stockfish

Last synced: 7 months ago
JSON representation

A script to evaluate a chess pgn file using Stockfish

Awesome Lists containing this project

README

          

# chess-puzzle-evaluator

## Script setup
### I would recommend setting up a [virtual environment](https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/) before installing this project's requirements

Install the project requirements
```
pip install -r requirements.txt
```
### AND
Install stockfish on your machine: https://github.com/official-stockfish/Stockfish

## Running the script
```
python3 main.py
```
Any invalid pgn's are logged to `invalid.txt` with errors messages

`invalid.txt` is created in the same directory as `main.py`

## Features
This script:
- Validates multiple pgn files in a directory
- Validates multiple games within a single file
- Coloured terminal output whilst running
- Detailed log file in the format \ \ \

Coming soon... requesting move data from a 'Site' url specified in the pgn file if there are no moves