Skip to content

Add CTG opening book reader - #1233

Open
noobpwnftw wants to merge 1 commit into
niklasf:mainfrom
noobpwnftw:ctg-reader
Open

noobpwnftw wants to merge 1 commit into
niklasf:mainfrom
noobpwnftw:ctg-reader

Conversation

@noobpwnftw

Copy link
Copy Markdown
Contributor

A full and correct CTG reader, the first to date. It reads CTG opening books (.ctg with its .cto and .ctb), for standard chess and Chess960.

chess.ctg.open_reader(path).find_all(board) yields an Entry per book move: the move; games, wins, draws and losses for the side making the move; the average ratings of both sides; the move's NAG and engine weight; the tournament and avoid flags and learn value; and the evaluation of the resulting position. A move is listed only if its resulting position is in the book.

Checked against five freely available books. Real books can't be shipped, so the tests use position signatures taken from those books plus a small synthetic book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant