jja
This is jja, a command line utility to interact with various chess file
formats. It is still in its very early stages of development. The initial
intention of the author was to convert their opening books which were saved with
ChessBase's proprietary CTG format to the free and open PolyGlot format.
Overtime they intend to add support for other chess file formats (abk, cbh, epd,
pgn, si4, si5 and so on).
Jin, Jîyan, Azadî
I've started hacking this on International Women's Day 2023, a day to honor the achievements of women and advocate for their rights worldwide. As a person of Kurdish heritage, I am particularly moved by the slogan "Woman, Life, Freedom," which has become a symbol of resistance against oppression and a call for equality. In the spirit of free software and free speech, I strive to contribute to the creation of a more just and inclusive society, where every human being is granted the freedom to express themselves and pursue their dreams. I also honor the memory of Mahsa Amini, whose tragic death reminds us of the urgent need to fight for women's freedom and safety.
More on Wikipedia, WikiPedia::Woman,_Life,_Freedom
Formats
jja can read and edit PolyGlot opening book files. jja can read CTG opening book files.
Usage
Use jja info to get brief information about the chess file.
Use jja find to search for a position in a chess file.
Use jja edit to edit PolyGlot opening book files.
jja determines the type of the file using its file extension.
Files with the extension .bin are considered PolyGlot books.
Files with the extension .ctg are considered CTG books.
By default if the standard output is a TTY, jja will display
information using fancy tables. Use --porcelain command line
option to get the output in CSV (comma-separated values) format
instead.
Demo
ChangeLog
0.2.1
- weight conversion in ctg to polyglot edit can be tuned with --nag-weight-{good,mistake,hard,blunder,interesting,dubious,forced}=
- edit learned --no-scale to avoid scaling weights globally to fit into 16 bits
- the code is now relatively well documented
- edit --in-place now properly deletes the output temp file on interrupt
- edit filters out moves with zero weights, use -0, --null to preserve them
0.2.0
- edit window lists position info (key, epd, legal moves) as comment
- edit no longer silently discards illegal moves
- edit can edit PolyGlot files in-place with -i, --in-place=SUFFIX
- edit can convert CTG opening books into PolyGlot opening books
- default to start position when no --fen or --pgn is given for edit and find
- info prints number of total pages in CTG books
0.1.1
- new positions can be added to polyglot files
- many bugs fixed with polyglot edit
- quote command added to print a random chess quote
- open command added to query ECO classification
0.1.0
- edit polyglot files, only editing present positions work
- read polyglot files
- read ctg files