- Blind mode tutorial
lichess.org
Donate

Why is my BOT not playing?

First put your bots token in place of token: xxxxxxxxxxxxxxxxx
Then make changes

First put your bots token in place of token: xxxxxxxxxxxxxxxxx Then make changes

Maybe try the Lichess discord... some players may be able or interested in supporting the Python API wrapper https://discord.gg/hy5jqSs

Maybe try the Lichess discord... some players may be able or interested in supporting the Python API wrapper https://discord.gg/hy5jqSs

token: "xxxxxxxxxxxxx" # lichess OAuth2 Token
url: "lichess.org/" # lichess base URL

engine: # engine settings
dir: "./engines/" # dir containing engines, relative to this project
name: "stockfish.exe" # binary name of the engine to use
protocol: "uci" # "uci" or "xboard"
uci_ponder: true # think on opponent time; only works if "protocol" is "uci"
polyglot:
enabled: false # activate polyglot book
book:
standard: # list of book file paths for variant standard

  • engines/book1.bin
  • engines/book2.bin
    # atomic: # list of book file paths for variant atomic
    # - engines/atomicbook1.bin
    # - engines/atomicbook2.bin
    # etc.
    # use the same pattern for giveaway, crazyhouse, horde, kingofthehill, racingkings, 3check as well
    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
    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: 1 # number of games to play simultaneously
sort_by: "best" # possible values: "best", "first"
accept_bot: false # accepts challenges coming from other bots
only_bot: false # accept challenges by bots only
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
max_base: 315360000 # maximum amount of base time to accept a challenge. the max is 315360000 (10 years)
min_base: 0 # minimum amount of base time to accept a challenge
variants: # chess variants to accept (lichess.org/variant)

  • standard
  • fromPosition
    # - antichess
    # - atomic
    # - chess960
    # - crazyhouse
    # - horde
    # - kingOfTheHill
    # - racingKings
    # - threeCheck
    time_controls: # time controls to accept
  • 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

+1
-1
laugh
thinking
heart
horsey

token: "xxxxxxxxxxxxx" # lichess OAuth2 Token url: "lichess.org/" # lichess base URL engine: # engine settings dir: "./engines/" # dir containing engines, relative to this project name: "stockfish.exe" # binary name of the engine to use protocol: "uci" # "uci" or "xboard" uci_ponder: true # think on opponent time; only works if "protocol" is "uci" polyglot: enabled: false # activate polyglot book book: standard: # list of book file paths for variant standard - engines/book1.bin - engines/book2.bin # atomic: # list of book file paths for variant atomic # - engines/atomicbook1.bin # - engines/atomicbook2.bin # etc. # use the same pattern for giveaway, crazyhouse, horde, kingofthehill, racingkings, 3check as well 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 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: 1 # number of games to play simultaneously sort_by: "best" # possible values: "best", "first" accept_bot: false # accepts challenges coming from other bots only_bot: false # accept challenges by bots only 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 max_base: 315360000 # maximum amount of base time to accept a challenge. the max is 315360000 (10 years) min_base: 0 # minimum amount of base time to accept a challenge variants: # chess variants to accept (lichess.org/variant) - standard - fromPosition # - antichess # - atomic # - chess960 # - crazyhouse # - horde # - kingOfTheHill # - racingKings # - threeCheck time_controls: # time controls to accept - 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 +1 -1 laugh thinking heart horsey

Oh when I created the account I accidentally played 2 puzzles thinking it was my account.

Oh when I created the account I accidentally played 2 puzzles thinking it was my account.

So you didn't code anything in python, you are just running stockfish.
My guess would be that your bot stops when it runs out of book moves, because the engine isn't stored where the config file says that it is stored, so it can't be run. Check that you have the actual directory that the stockfish executable is in after the dir: in the config file.

So you didn't code anything in python, you are just running stockfish. My guess would be that your bot stops when it runs out of book moves, because the engine isn't stored where the config file says that it is stored, so it can't be run. Check that you have the actual directory that the stockfish executable is in after the dir: in the config file.

@ProgrammerAngrim, I found out what went wrong, it seems that I never upgraded python and the pip3 wasn't working in the command prompt. So I had to upgrade it and then get Virtualeve .venv to work. Now it works but thanks.

@ProgrammerAngrim, I found out what went wrong, it seems that I never upgraded python and the pip3 wasn't working in the command prompt. So I had to upgrade it and then get Virtualeve .venv to work. Now it works but thanks.

This topic has been archived and can no longer be replied to.