You can post issues you're having with your bot (or the interface) here, so we can try to find a solution together.
How can I get how much time is left on my clock inside lichess-bot.py?
In lichess.org/api#operation/botGameStream gameState contains 'wtime' and 'btime'
See github.com/careless25/lichess-bot/blob/master/lichess-bot.py#L170
See github.com/careless25/lichess-bot/blob/master/lichess-bot.py#L170
Thanks.
I want to make my own opening book. After a move I want to have multiple lines so it can play in most of the possible moves by my opponents but I want if it is my turn to choose only one move from the multiple moves in the book (e.g. I play e4 and I will have a response for e5, e6 and c5 but I want if I have black and my opponent plays e4 to play e5). How can I do that?
I think that's selection: "best_move" in config.yml.
Yes, but how can I make a best_move in my book?
you need to give the move that you want to play the highest score in the book.
You can use something like scid to edit a book.
Note: if you use "best_move" in the config.yml then your bot will only play one line over and over (still depending how your opponent reacts to that line of course.)
You can use something like scid to edit a book.
Note: if you use "best_move" in the config.yml then your bot will only play one line over and over (still depending how your opponent reacts to that line of course.)
How can I give it the highest score?
@AttackingOrDefending
In scid, you can edit the weight of the moves in the book window (F6), if you have more than one move...
In freeAquarium (the tool you already know, that I wrote for editing books www.rohleder.de/freeAquarium/) its the "yourbook" column...
for the technical description of weight in polyglot books:
http://hgm.nubati.net/book_format.html and search for "weight" ^^
In scid, you can edit the weight of the moves in the book window (F6), if you have more than one move...
In freeAquarium (the tool you already know, that I wrote for editing books www.rohleder.de/freeAquarium/) its the "yourbook" column...
for the technical description of weight in polyglot books:
http://hgm.nubati.net/book_format.html and search for "weight" ^^
This topic has been archived and can no longer be replied to.