nguyenpham / ocgdb

Open Chess Game Database Standard (OCGDB)
MIT License
31 stars 8 forks source link

Request option to set eco codes. #24

Closed Jonathan003 closed 2 years ago

Jonathan003 commented 2 years ago

I would like an option to set or overwrite existing eco codes. I don't know what software is best at the moment to set the eco codes. I have noticed that eco codes can differentiate regarding what software was used to set the eco codes. If you set eco codes with Chessbase or Scid or pgn-extract, or with the new Hiarcs Explorer pro, for example. There will always be slight differences. I like the eco codes use by Chessbase but it is very slow for huge databases.

nguyenpham commented 2 years ago

The request has been implemented with commit https://github.com/nguyenpham/ocgdb/commit/8040e330be40d25e2041359b03ce7a3f604d4075

Users can re-create all ECO when creating a new database. The option is reseteco. However, it works only if the database has the field Moves1 or Moves2:

ocgdb -pgn big.png -db big.ocgdb.db3 -cpu 4 -o moves2;reseteco

Jonathan003 commented 2 years ago

Thanks! Can you tel me something more about the eco codes that where used? Do you have some idea how they compere with eco codes set by Scid, Chessbase or the new Hiarcs Explorer pro?

nguyenpham commented 2 years ago

ECO is a standard. It means all chess tools/GUIs should produce quite similar results for ECO. They may differ a bit because their internal ECO databases may be different, depending on the sources they take. The difference may not be too much and not really important since ECO is just extra information about openings.

I took the ECO database from Arasan (https://github.com/jdart1/arasan-chess/blob/master/book/eco) and I believe it is one the best.

Jonathan003 commented 2 years ago

Thanks for the explanation.