#custom opening book for my bot

21 messages · Page 1 of 1 (latest)

smoky eagle
#

Hii!! I was wondering if its possible to make lichess bots to play from a custom opening book you made?

I made one and have it on Banksia GUI for when I host a tournament on there but I'd love to also have it on lichess too

bitter ingot
#

how are you running your bot?

#

from lichess's side, it's just sending you the board state and you respond with a move

#

so ofc you can just use an opening book. just check if the board state matches a book position, and if so, respond with that move instead of doing whatever your bot does otherwise

#

if you're using lichess-bot, iirc it has a config option which does this automatically

ashen cove
#

could you please explain witch is "IIRC" ?

bitter ingot
#

iirc means "if i recall correctly"

smoky eagle
#

So I can run my engine with customs weights, etc.

#

I just don't know how to add an opening book for my bots that different from Lichess'es

#

So it can play positions from there too

bitter ingot
#

Wait, so, are you actually running your "own" bot as in one you have written?

#

Or just Stockfish or something?

#

Either way, as I said, this isn't really a question that can be answered from Lichess's side. All that Lichess does is send you the state and you respond with a move. So how to use an opening book depends on how you're running your bot.

#

I guess given that it sounds like you don't really understand what's going on, I'm assuming you're just running an existing bot. At least for Stockfish and probably most other more mature UCI bots, you should be able to specify the opening book as an UCI option.

#

So I guess it should show up in the bot options in your GUI.

#

It it's an actual custom bot you've written yourself, you obviously have full control over what it does so you can trivially implement whatever opening book stuff you want yourself.

#

I guess maybe your GUI also has something like this built in separately but no idea whether it actually does

vague rivet
bitter ingot
#

ah, you're right, I guess I mixed it up with endgame tables

#

It's definitely something that has to be handled outside of Lichess though. I guess it's possible the GUI doesn't support opening books when playing on Lichess.