Torom / BotLi

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

Request: Different engines for different TCs #131

Closed EmptikBest closed 1 year ago

EmptikBest commented 1 year ago

Is your feature request related to a problem? Please describe. No problem at all, except that I have found some engines that are better in different TCs then other engines..

Describe the solution you'd like If possible, can there be a option for different engines for different TCs? Sort of like:

bullet:  
  dir: "F:/EmptikBot/engines"             # Directory containing the engine.
  name: "stockfish.exe"                      # Binary name of the engine to use.
  uci_options:                            # Arbitrary UCI options passed to the engine. (Commenting allowed)
    Move Overhead: 500                    # Increase if your bot flags games too often.
    Threads: 28                           # Max CPU threads the engine can use.
    Hash: 8192                            # Max memory (in megabytes) the engine can allocate.
blitz:
  dir: "F:/EmptikBot/engines"             # Directory containing the engine.
  name: "Emptik.exe"                      # Binary name of the engine to use.
  uci_options:                            # Arbitrary UCI options passed to the engine. (Commenting allowed)
    Move Overhead: 500                    # Increase if your bot flags games too often.
    Threads: 28                           # Max CPU threads the engine can use.
    Hash: 8192                            # Max memory (in megabytes) the engine can allocate.
    Experience Book: true

And so on for blitz, rapid, classical....

Describe alternatives you've considered None.

Additional context

EDIT: Maybe same thing is also possible with opening books?

Torom commented 1 year ago

Maybe same thing is also possible with opening books?

You can already do that since 7511ae7.

EmptikBest commented 1 year ago

Oh thanks! I didnt know sorry..

Are you going to implement this with engines? It would help me greatly

Thanks

EDIT: I just checked the config.yml, it says a seperate section for bullet etc.. I meant could there be a seperate max_depth, move_selection etc? I am going to use the same books, but with different max depths. thanks

M-DinhHoangViet commented 1 year ago

I think the way to do it is similar to the code of Standard chess and Chess Variant right @Torom ? Or is it different?

EmptikBest commented 1 year ago

Thanks!