Releases: hayatbiralem/eco.json
eco.json is now an npm package
this version is now published as @chess-openings/eco.json on npmjs.com
Key changes:
- several methods under the /module folder are now exported
- the JSON opening and other data files are not exported
- executing package methods will do an asynchronous read of the raw data files from github if needed
- this reduces package size, and allows updates to the data without requiring package upgrade
Latest openings updates
See README.md
Version 3.6.0
Opening count by ECO category (not including interpolations)
{ total: 12371, A: 2723, B: 2726, C: 2861, D: 2271, E: 1790 }
added Wikipedia opening data from "List of Chess Gambits" page
source: https://en.wikipedia.org/wiki/List_of_chess_gambits
Pull request generated with help from new tooling daughter project.
eco_tsv updates, incl. new interpolated.json and fromTo.json
Updated opening data from lichess.org; A few new entries, some opening name changes, and some move sequence changes. See README for further information.
(The original fromTo.json in earlier 3.2.0 release omitted interpolated openings. This patch fixes that.)
Added 1000+ openings from Wikibooks
Wikibooks has a Chess Opening Theory book that contains a lot of opening information. Most of this was already in eco.json, but there were many new entries to add.
Note that eco_interpolated.json and fromTo.json have changed as a result.
You can anticipate a couple of articles on Medium.com explaining the process of adding new openings to this project.
changed JSON encoding; added from-to data and tooling
- Converted eco*.json from array to objects keyed on FEN (BREAKING CHANGE)
- (Compatible with existing interpolated.json encoding)
- Added from-to json array
- new scripts from.mjs and to.mjs scripts in /tooling (see README)
- format: [fromFEN, toFEN, fromSrc, toSrc]
- added version # to top of README (same as release tag)
What's Changed
Full Changelog: v2.1.1...v3.0.0
Minor editor to README
Fixed some garbage text at top of file.
eco.json now split into smaller JSON files
eco.json is now ecoA.json, ecoB.json,...,ecoE.json (one file per ECO category). This will make it easier for editing.
Added a missing ECO root variation (B58, Sicilian classical)
Added "isEcoRoot" field to all 500 variations that listed for each ECO category/code combination (100 per category.
A /tooling folder has been added, containing stand-alone node scripts (hence the .mjs extensions)
ECO A openings from wikipedia
Added opening data from Wikipedia (A category; B, C, D, E to soon follow).
To see all Wikipedia-sourced data, run the following:
//list all eco_wikip references
const wikip = json.filter(rec => (rec.src==="eco_wikip" || rec.aliases?.eco_wikip))
console.log(JSON.stringify(wikip, null, 2))where json is parsed from the eco.json file.
More to come...