Torom / BotLi

Lichess Bot
GNU Affero General Public License v3.0
44 stars 82 forks source link

Auto rematch #108

Closed EmptikBest closed 1 year ago

EmptikBest commented 1 year ago

Is your feature request related to a problem? Please describe. Nope

Describe the solution you'd like I would like it so I can configure the config.yml so it automatically sends a rematch to the bot it just played. This can be enchanced even further by there being options to only send a rematch if the bot win/draws/loses.

Describe alternatives you've considered No alternatives.

Additional context ...

Torom commented 1 year ago

You would have to elaborate on why that would be useful. Always only one rematch or infinitely many?

FatFritz2 commented 1 year ago

you can use create option in BotLi. There, you can choose how many games as you want !

EmptikBest commented 1 year ago

@Torom, I think the user should be able to configure how many rematches, or taking it even further by adding a option to send a number of rematches only if the bot wins/draws/loses. This would be useful in cases like, another bot defeats the bot, and then you want your bot to play against it again to try and win or something. I don't really know many use cases but there could be more.

In reply to your comment @FatFritz2, I know about the create option, but I just want my bot to challenge random players. I could use rematches in case of a scenario in which another bot draws my bot, and I want my bot to play more games with it, so I can know which bot is stronger. I also have both draw and resign disabled in my config.yml, since I want my bot to actually try to win a game, and if it doesn't, it can just lose, so the only draws are by threefold repetition and stalemate (which very rarely happens).

Torom commented 1 year ago

I don't like this idea for several reasons:

M-DinhHoangViet commented 1 year ago

oh

EmptikBest commented 1 year ago

I agree with you now that I see it in that way @Torom, so I will close this

EmptikBest commented 1 year ago

@Torom I am re-opening this as I have another thing to say...

There can be a flag in the create command as for example `create 10 1+1 true standard yes' where yes/no stands for rematch instead of challenge...

No options in config or anything, just so there is the 'View Rematch' button in the game page

Torom commented 1 year ago

I did not understand exactly what this option is supposed to do.

If you mean that no new challenge but a rematch should be offered, which the other can accept via the rematch button on the Lichess homepage. This is not possible with the bot API. There are no rematches available for bots.

EmptikBest commented 1 year ago

Oh okay, thanks for the quick response!

Yes I do mean that..

But can it be done with challenge:read, challenge:write, or/and challenge:bulk token??

Torom commented 1 year ago

No, rematches are not part of the API.

EmptikBest commented 1 year ago

Okay, thanks... I might create a feature request in lichess-org/lila for this