Torom / BotLi

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

Botli gets time outed quickly on heroku #28

Closed OhMGod-Dude closed 2 years ago

OhMGod-Dude commented 2 years ago

I don't what the problem is but it automatically gets time outed

Torom commented 2 years ago

Can you maybe explain what you mean? How am I supposed to be able to help you like this?

OhMGod-Dude commented 2 years ago

alright i made my bot play a game with a another bot and it quickly got time outed.I want to know what is the best settings for bullet??

OhMGod-Dude commented 2 years ago

i don't understand why it gets quickly time outed

Torom commented 2 years ago

By "time outed" do you mean that the bot lost on time? Was it a 30+0 game? Without increment this happens, Lichess has a certain lag that gets worse when the moves are played faster and faster, it is often pure luck who wins on time.

And besides, some of your configuration is pretty much nonsense. I would not set the Move Overhead in the uci_options so high, this leads to bad moves of Stockfish when playing without increment. The Threads are way too high, you don't get so many CPUs on Heroku, the Hash is very small.

OhMGod-Dude commented 2 years ago

and another thing i want black pieces to use lichess cloud evaluation but bot uses book.i want to use book for white and cloud for black.How can i do that??

Torom commented 2 years ago
  opening_books:
    enabled: true                         # Activate opening books.
    books:
      white:                              # List of names of books to use as white.
        - "cubail"
#     black:                              # List of names of books to use as black.
#       - "cubail"
#     standard:                           # List of names of books to use if there is no specific book for white, black or chess960.   
#       - "cubail"
      chess960:                           # List of names of books to use for Chess960.
        - "Maverick"
        - "RickRoll"
    selection: "best_move"          # Move selection is one of "weighted_random", "uniform_random" or "best_move".
#   max_depth: 500                        # Half move max depth. (Comment this line for max depth)

Thus, the book should only be used for white. And you can comment out the max_depth line instead of putting in a high number. This way the book will be played to the maximum depth.

OhMGod-Dude commented 2 years ago

thanks

OhMGod-Dude commented 2 years ago

it uses the engine only now??

Torom commented 2 years ago
    lichess_cloud:
      enabled: true                        # Activate online moves from Lichess cloud eval.
      min_eval_depth: 50                   # Minimum evaluation depth.
      min_time: 50                         # Time the bot must have at least to use the online move.
      timeout: 5                           # Time the server has to respond.
      max_depth: 100                       # Half move max depth. (Comment this line for max depth)

You fucked up your lichess_cloud config. This is the default:

    lichess_cloud:
      enabled: false                      # Activate online moves from Lichess cloud eval.
      min_eval_depth: 10                  # Minimum evaluation depth.
      min_time: 40                        # Time the bot must have at least to use the online move.
      timeout: 5                          # Time the server has to respond.
#     max_depth: 16                       # Half move max depth. (Comment this line for max depth)
OhMGod-Dude commented 2 years ago

i am sorry but i just wanted ur help.No need Thanks

OhMGod-Dude commented 2 years ago

i figured out what my mistake.Thanks