lichess-bot-devs / lichess-bot

A bridge between Lichess bots and chess engines
GNU Affero General Public License v3.0
765 stars 448 forks source link

Bot not using opening book #254

Closed Jishnu2010 closed 3 years ago

Jishnu2010 commented 3 years ago

I updated the code to make my bot use two opening books. But it's not using any one of them. From the start it plays using engine and thus wastes time in the opening. Here is the config.yml code: ` token: "REMOVED" # lichess OAuth2 Token url: "https://lichess.org/" # lichess base URL

engine: # engine settings dir: "./engines/" # dir containing engines, relative to this project name: "Stockfish.exe" # binary name of the engine to use protocol: "uci" # "uci" or "xboard" uci_ponder: true # think on opponent time; only works if "protocol" is "uci" polyglot: enabled: false # activate polyglot book book: standard: # list of book file paths for variant standard

abort_time: 20 # time to abort a game in seconds when there is no activity fake_think_time: false # artificially slow down the bot to pretend like it's thinking move_overhead: 100 # increase if your bot flags games too often

challenge: # incoming challenges concurrency: 1 # number of games to play simultaneously sort_by: "first" # possible values: "best", "first" accept_bot: true # accepts challenges coming from other bots only_bot: false # accept challenges by bots only max_increment: 180 # maximum amount of increment to accaept a challenge. the max is 180. set to 0 for no increment min_increment: 0 # minimum amount of increment to accept a challenge variants: # chess variants to accept (http://lichess.org/variant)

The token is removed. My bot's name is ChessBot13920

The code is not working here. I am sharing the file. FILE.docx

the actual file name is config.yml

chitty commented 3 years ago

In the config file you shared under polyglot: enabled: false # activate polyglot book. Should be set it to true to activate the book(s).

Jishnu2010 commented 3 years ago

Thanks. It's working now