lichess-bot-devs / lichess-bot

A bridge between Lichess bots and chess engines
GNU Affero General Public License v3.0
778 stars 450 forks source link

Bot is not playing #196

Closed Caleb-Kang closed 4 years ago

Caleb-Kang commented 4 years ago

I play as PlayLeelaChess https://lichess.org/@/PlayLeelaChess on https://lichess.org. It is not playing a single move...

This is the config.yml.

token: 'Unspecified token for obvious reasons'    # lichess OAuth2 Token
url: "https://lichess.org/"  # lichess base URL

engine:                      # engine settings
  dir: "./engines/"          # dir containing engines, relative to this project
  name: "lczero.exe"        # binary name of the engine to use
  protocol: "uci"            # "uci" or "xboard"
  polyglot:
    enabled: false           # activate polyglot book
    book:
      standard: "engines/book.bin" # book file path of standard chess
#      atomic: "atomic book path"
#      giveaway: "antichess book path"
#      crazyhouse: "crazyhouse book path"
#      horde: "horde book path"
#      kingofthehill: "kingOfTheHill book path"
#      racingkings: "racingKings book path"
#      3check: "threeCheck book path"
    max_depth: 8             # half move max depth
    min_weight: 1            # selects move with highest weight but not below this value
    selection: "weighted_random" # move slection is one of "weighted_random", "uniform_random" or "best_move" (but not below the min_weight in 2. and 3. case)
  uci_options:               # arbitrary UCI options passed to the engine
    Move Overhead: 100       # increase if your bot flags games too often
    Threads: 4               # max CPU threads the engine can use
    Hash: 256                # max memory (in megabytes) the engine can allocate
#   go_commands:             # additional options to pass to the UCI go command
#     nodes: 1               # Search so many nodes only.
#     depth: 5               # Search depth ply only.
#     movetime: 1000         # Integer. Search exactly movetime milliseconds.
# xboard_options:            # arbitrary xboard options passed to the engine
#   cores: "4"
#   memory: "4096"
#   egtpath:                 # dir containing egtb, relative to this project
#     gaviota: "Gaviota path"
#     nalimov: "Nalimov Path"
#     scorpio: "Scorpio Path"
#     syzygy: "Syzygy Path"
  lczero:                    # lczero specific settings
    weights: "engines/latest.txt" # weights file path
    threads: 4               # max CPU threads the engine can use
    gpu: 0                   # which GPU to use
    tempdecay: 10            # After search is complete, the tempdecay can pick slightly weaker moves to offer variety. 10 is good tradeoff
    noise: false              # Randomness in the search algorithm. This makes sure that even unfavored lines are given a "lucky" shot
    log: "./engines/log.txt" # save log of lczero debug output
  silence_stderr: false      # some engines (yes you, leela) are very noisy

abort_time: 20               # time to abort a game in seconds when there is no activity
fake_think_time: false       # artificially slow down the bot to pretend like it's thinking

challenge:                   # incoming challenges
  concurrency: 1             # number of games to play simultaneously
  sort_by: "best"            # possible values: "best", "first"
  accept_bot: false          # accepts challenges coming from other bots
  max_increment: 180         # maximum amount of increment to accaept a challenge. the max is 180. set to 0 for no increment
  min_increment: 0           # minimum amount of increment to accept a challenge
  variants:                  # chess variants to accept (http://lichess.org/variant)
    - standard
#   - fromPosition
#   - antichess
#   - atomic
#   - chess960
#   - crazyhouse
#   - horde
#   - kingOfTheHill
#   - racingKings
#   - threeCheck
  time_controls:             # time controls to accept
#   - ultraBullet
    - bullet
    - blitz
    - rapid
#   - classical
#   - correspondence
  modes:                     # game modes to accept
    - casual                 # unrated games
    - rated                  # rated games - must comment if the engine doesn't try to win
ShailChoksi commented 4 years ago

I believe this is the old version of the config:

  lczero:                    # lczero specific settings
    weights: "engines/latest.txt" # weights file path
    threads: 4               # max CPU threads the engine can use
    gpu: 0                   # which GPU to use
    tempdecay: 10            # After search is complete, the tempdecay can pick slightly weaker moves to offer variety. 10 is good tradeoff
    noise: false              # Randomness in the search algorithm. This makes sure that even unfavored lines are given a "lucky" shot
    log: "./engines/log.txt" # save log of lczero debug output

You can use the uci_options to pass in these now

Caleb-Kang commented 4 years ago

Ok, thanks.