TheYoBots commited on
Commit
9fef4ea
·
1 Parent(s): ee0bbdb

Improve and make config.yml file look neater, and rectify error in intro message

Browse files
Files changed (2) hide show
  1. config.yml +17 -15
  2. lishogi-bot.py +1 -1
config.yml CHANGED
@@ -1,42 +1,44 @@
1
- token: "xxxxxxxxxxxxxxxx" # lichess OAuth2 Token
2
- url: "https://lishogi.org/" # lichess base URL
3
 
4
  engine: # engine settings
5
  dir: "./engines/" # dir containing engines, relative to this project
6
  name: "fairy-stockfish-largeboard_x86-64-bmi2" # binary name of the engine to use
7
- #name: "YaneuraOu-by-gcc" # binary name of the engine to use
8
  protocol: "usi" # "usi"
9
- ponder: false # not supported!
10
  # engine_options: # any custom command line params to pass to the engine
11
  # cpuct: 3.1
12
  uci_options: # arbitrary USI options passed to the engine
13
- Move Overhead: 100 # increase if your bot flags games too often
14
  Threads: 2 # max CPU threads the engine can use
15
- USI_Hash: 256 # max memory (in megabytes) the engine can allocate
16
  # go_commands: # additional options to pass to the USI go command
17
  # nodes: 1 # Search so many nodes only.
18
  # depth: 5 # Search depth ply only.
19
  # movetime: 1000 # Integer. Search exactly movetime milliseconds.
20
- silence_stderr: false # some engines (yes you, leela) are very noisy
21
 
22
- abort_time: 20 # time to abort a game in seconds when there is no activity
23
  fake_think_time: false # artificially slow down the bot to pretend like it's thinking
24
- move_overhead: 2000 # increase if your bot flags games too often
25
 
26
  challenge: # incoming challenges
27
- concurrency: 1 # number of games to play simultaneously
28
  sort_by: "best" # possible values: "best", "first"
29
- accept_bot: false # accepts challenges coming from other bots
30
  max_increment: 180 # maximum amount of increment to accaept a challenge. the max is 180. set to 0 for no increment
31
  min_increment: 0 # minimum amount of increment to accept a challenge
32
- variants: # chess variants to accept
33
  - standard
 
34
  time_controls: # time controls to accept
 
35
  - bullet
36
  - blitz
37
  - rapid
38
- # - classical
39
- # - correspondence
40
  modes: # game modes to accept
41
  - casual # unrated games
42
- - rated # rated games - must comment if the engine doesn't try to win
 
1
+ token: "xxxxxxxxxxxxxxxx" # lishogi OAuth Token
2
+ url: "https://lishogi.org/" # lishogi base URL. Do not change this unless locally hosted.
3
 
4
  engine: # engine settings
5
  dir: "./engines/" # dir containing engines, relative to this project
6
  name: "fairy-stockfish-largeboard_x86-64-bmi2" # binary name of the engine to use
7
+ #name: "YaneuraOu-by-gcc" # binary name of the engine to use. This will not be used and not work.
8
  protocol: "usi" # "usi"
9
+ ponder: false # not supported! Setting it to 'true' will not work.
10
  # engine_options: # any custom command line params to pass to the engine
11
  # cpuct: 3.1
12
  uci_options: # arbitrary USI options passed to the engine
13
+ Move Overhead: 5000 # increase if your bot flags games too often. 5000 is the highest accepted value.
14
  Threads: 2 # max CPU threads the engine can use
15
+ USI_Hash: 256 # max memory (in megabytes) the engine can allocate
16
  # go_commands: # additional options to pass to the USI go command
17
  # nodes: 1 # Search so many nodes only.
18
  # depth: 5 # Search depth ply only.
19
  # movetime: 1000 # Integer. Search exactly movetime milliseconds.
20
+ silence_stderr: false # some engines are very noisy
21
 
22
+ abort_time: 120 # time to abort a game in seconds when there is no activity
23
  fake_think_time: false # artificially slow down the bot to pretend like it's thinking
24
+ move_overhead: 5000 # increase if your bot flags games too often. 5000 is the highest accepted value.
25
 
26
  challenge: # incoming challenges
27
+ concurrency: 100 # number of games to play simultaneously
28
  sort_by: "best" # possible values: "best", "first"
29
+ accept_bot: true # accepts challenges coming from other bots
30
  max_increment: 180 # maximum amount of increment to accaept a challenge. the max is 180. set to 0 for no increment
31
  min_increment: 0 # minimum amount of increment to accept a challenge
32
+ variants: # shogi variants to accept
33
  - standard
34
+ - fromPosition
35
  time_controls: # time controls to accept
36
+ - ultraBullet
37
  - bullet
38
  - blitz
39
  - rapid
40
+ - classical
41
+ - correspondence
42
  modes: # game modes to accept
43
  - casual # unrated games
44
+ - rated # rated games
lishogi-bot.py CHANGED
@@ -334,7 +334,7 @@ def intro():
334
  return r"""
335
  . _/\_
336
  . //o o\\
337
- . || || lishogi-bot v0.2.0
338
  . || ||
339
  . ||____|| Play on Lishogi with a bot
340
  """ % __version__
 
334
  return r"""
335
  . _/\_
336
  . //o o\\
337
+ . || || lishogi-bot %s
338
  . || ||
339
  . ||____|| Play on Lishogi with a bot
340
  """ % __version__