Skip to content

Bridge between chess engine and book in tnt format

Notifications You must be signed in to change notification settings

Thibor/BookReaderTnt

Repository files navigation

BookReaderTnt

BoookReaderTnt can be used as normal UCI chess engine in chess GUI like Arena. This program can read and add moves to chess openig book with mem extension. To use this program you need install .NET Framework 4.8

Parameters

-bf mem opening Book File
-ef chess Engine File
-tf chess Teacher File
-ea chess Engine Arguments
-w add moves to the book
-u update moves in the book
-lr Limit maximum ply depth when Read from book (default 8) 0 means no limit
-lw Limit maximum ply depth when Write to book (default 8) 0 means no limit
-add Limit ADDed moves per game (default 8) 0 means no limit
-rnd RaNDomization (default 50) 0 - means choose best move 100 - mean choose random move 200 - mean choose worst move
-log Create LOG file

Console commands

book load [filename].[tnt|uci|pgn|fen] - clear and add
book save [filename].[tnt|uci|pgn|txt] - save book to the file
book addfile [filename].[tnt|pgn|uci|fen] - adds moves from another book
book delete [number x] - delete x moves from the book
book clear - clear all moves from the book
book adduci [uci] - adds a sequence of moves in uci format
book moves [uci] - make sequence of moves in uci format and shows possible continuations
book structure - show structure of current book
book getoption - show options
book setoption name [option name] value [option value] - set option
quit quit the program as soon as possible

Examples

BookReaderTnt.exe -bf bigtnt.tnt -ef stockfish.exe
BookReaderTnt.exe bigtnt -ef stockfish.exe

The program will first try to find move in chess opening book named bigtnt.tnt, and if it doesn't find any move in it, it will run a chess engine named stockfish.exe

BookReaderTnt.exe -bf bigtnt.tnt -w 100K -ef stockfish.exe
BookReaderTnt.exe bigtnt -ef stockfish.exe -w 100K

The program will first try to find move in chess opening book named bigtnt.tnt, and if it doesn't find any move in it, it will run a chess engine named stockfish.exe. If engine loose game, winner moves will be added to the book. If the book does not exist, the program will create it. 100k means that the book will grow to 100 000 moves, after exceeding this number, the less significant moves will be removed to make room for new ones.

About

Bridge between chess engine and book in tnt format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages