niklasf / python-chess

A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine communication
https://python-chess.readthedocs.io/en/latest/
GNU General Public License v3.0
2.44k stars 530 forks source link

Polyglot merging and writing #876

Open sugizo opened 2 years ago

sugizo commented 2 years ago

nice to have more features on polyglot like make, merge, dump, etc

ref http://manpages.ubuntu.com/manpages/bionic/man6/polyglot.6.html

ghost commented 2 years ago

python chess has this features with another name

for example make is same board.push

sugizo commented 2 years ago

not sure, is it same : board.push can make .bin from .pgn like on the link above (ubuntu package polyglot) ?

e.g. from the link polyglot make-book [-pgn inputfile] [-bin outputfile] [-max-ply ply] [-min-game games] [-min-score score] [-only-white] [-only-black] [-uniform]

ghost commented 2 years ago

if you want to have this features , you must download a chess GUI not chess board

python-chess is chess board not pro chess GUI

sugizo commented 2 years ago

basically the idea is taken from python-chess itself while in pgn you can parsing (read) and writing why polyglot can only parsing (read)

if not possible, it's ok, just an idea or suggestion to have it on python-chess, still can use another app btw to achieve it