Skip to content

This program can read and add moves to chess openig book with mem extension

Notifications You must be signed in to change notification settings

Thibor/BookReaderMem

Repository files navigation

BookReaderMem

BoookReaderMem 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 Add moves per game (default 8) 0 means no limit
-rnd RaNDomization (default 100) 0 - mean choose best move 100 - mean choose random move 200 - mean choose worst move
-log Create LOG file

Console commands

help - displays basic commands
book load [filename].[mem|uci|pgn|tnt] - clear and add
book save [filename].[mem|uci|pgn|tnt] - save book to the file
book addfile [filename].[mem|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 addfen [fen] - add position in fen 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

BookReaderMem.exe -bf bigmem.mem -ef stockfish.exe
BookReaderMem.exe bigmem -ef stockfish.exe

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

BookReaderMem.exe -bf bigmem.mem -w 100K -ef stockfish.exe
BookReaderMem.exe bigmem -ef stockfish.exe -w 100K

The program will first try to find move in chess opening book named bigmem.mem, 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

This program can read and add moves to chess openig book with mem extension

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages