0.1.0 • Published 3 years ago
chess-opening-book-reader v0.1.0
chess-opening-book-reader
Forked from chess-tools, the goal of this project is to provide an easy way to parse opening books of various formats.
Installation
npm install chess-opening-book-reader
Usage
const buffer = somethingThatReturnsArrayBuffer()
import { OpeningBooks } from 'chess-opening-book-reader'
book = new OpeningBooks.CTG().loadBook(buffer)
book.find(someFen)
Supported Formats:
- CTG - used by products such as Chessbase
- Polyglot - used by a number of open source projects
- ABK - used by products such as Arena
- EPD
- ECO
References
Note: Sample Files are believed to be in the public domain or licensed under GPL. Sources are provided below.
Chess Programming Wiki
ABK Format
Polyglot Format
CTG Format
CTGReader
EPD
ECO
- https://www.chessprogramming.org/ECO
- Sample ftp://ftp.cs.kent.ac.uk/pub/djb/pgn-extract/eco.pgn
Winboard/ XBoard Protocol
UCI
0.1.0
3 years ago