Skip to content

Instantly share code, notes, and snippets.

@cedricfarinazzo
Last active May 22, 2020 15:09
Show Gist options
  • Save cedricfarinazzo/68bebb4c9d998eaec759de3b7d5a347b to your computer and use it in GitHub Desktop.
Save cedricfarinazzo/68bebb4c9d998eaec759de3b7d5a347b to your computer and use it in GitHub Desktop.
Lichess config
token: "XXXXXXXXXXX" # lichess OAuth2 Token
url: "https://lichess.org/" # lichess base URL
engine: # engine settings
dir: "./engines/" # dir containing engines, relative to this project
name: "chessengine" # binary name of the engine to use
protocol: "uci" # "uci" or "xboard"
uci_ponder: false # think on opponent time; only works if "protocol" is "uci"
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"
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)
max_depth: 8 # half move max depth
# engine_options: # any custom command line params to pass to the engine
# cpuct: 3.1
# uci_options: # arbitrary UCI options passed to the engine
# Move Overhead: 100 # increase if your bot flags games too often
# Ponder: true
# Threads: 2 # 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"
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
move_overhead: 2000 # increase if your bot flags games too often
challenge: # incoming challenges
concurrency: 3 # number of games to play simultaneously
sort_by: "best" # possible values: "best", "first"
accept_bot: true # 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment