Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elma16/reti
A collection of cql scripts for endgame studies in pgn files.
https://github.com/elma16/reti
chess cql
Last synced: 10 days ago
JSON representation
A collection of cql scripts for endgame studies in pgn files.
- Host: GitHub
- URL: https://github.com/elma16/reti
- Owner: elma16
- Created: 2022-04-05T16:41:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T12:19:04.000Z (about 1 year ago)
- Last Synced: 2024-11-06T01:59:01.227Z (about 2 months ago)
- Topics: chess, cql
- Language: Jupyter Notebook
- Homepage:
- Size: 5.9 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reti
A collection of cql scripts for endgame studies in pgn files.## Introduction
In Müller and Lamprecht's celebrated work "Fundamental Chess Endgames", [they show a table on page 11 (this is from the Amazon website free sample of the book)](https://www.amazon.co.uk/Fundamental-Chess-Endings-One-Encyclopaedia/dp/1901983536?asin=B00BJ64LMW&revisionId=e8148266&format=1&depth=1). In it, they mention the use of Mega Database 2001, a proprietary database by Chessbase. Obtaining a copy of this to reproduce their table would be ~£100. It's now 2022, and open source chess has come a long way, and now it is trivial to obtain databases 100 times larger than this, completely for free. Namely, Lichess has an [open source database of games played on their website](https://database.lichess.org/#standard_games). The final piece of the puzzle is finding a way to obtain the required values. For this I used Gady Costeff's [CQL : Chess Query Language](http://www.gadycosteff.com/cql/). The result is a collection of scripts which can be run to analyse how often an ending occurs.
## But wait, there's more!
This analysis is not limited to just some big database, this can be done on _any_ pgn file you have available to you!
## Installation
To install, simply clone the repository
``` shell
gh repo clone elma16/reti
```you will also need cql.
## Usage
``` shell
source FCE-table.sh path/to/cql/executable path/to/database.pgn path/to/output/folder halfmoves
```