BlueMoonBot commited on
Commit
11c03af
·
verified ·
1 Parent(s): 7dea4b6

Update config.yml

Browse files
Files changed (1) hide show
  1. config.yml +61 -81
config.yml CHANGED
@@ -1,53 +1,36 @@
1
  token: "lip_QudNlmFbx2p50WgrAV4x" # Lichess OAuth2 Token.
2
  url: "https://lichess.org/" # Lichess base URL.
3
 
4
-
5
  engine: # Engine settings.
6
- dir: "./fairy" # Directory containing the engine.
7
- name: "stockfish" # Binary name of the engine to use.
8
  debug: False # When enabled, log all startup communication with the engine.
9
- working_dir: "" # Directory where the chess engine will read and write files.
 
 
 
 
10
  protocol: "uci" # "uci", "xboard" or "homemade"
11
- ponder: false # TURNED OFF: Stops background thinking.
12
-
13
- polyglot:
14
- enabled: true # Activate polyglot book.
15
- book:
16
- standard: # List of book file paths for variant standard.
17
- - engines/book1.bin
18
- - engines/book2.bin
19
- atomic: # List of book file paths for variant atomic.
20
- - engines/atomicbook1.bin
21
- - engines/atomicbook2.bin
22
- chess960: # List of book file paths for variant chess960.
23
- - engines/chess960book1.bin
24
- - engines/chess960book2.bin
25
- giveaway: # List of book file paths for variant giveaway (antichess).
26
- - engines/giveawaybook1.bin
27
- - engines/giveawaybook2.bin
28
- crazyhouse: # List of book file paths for variant crazyhouse.
29
- - engines/crazyhousebook1.bin
30
- - engines/crazyhousebook2.bin
31
- horde: # List of book file paths for variant horde.
32
- - engines/hordebook1.bin
33
- - engines/hordebook2.bin
34
- kingofthehill: # List of book file paths for variant kingofthehill.
35
- - engines/kingofthehillbook1.bin
36
- - engines/kingofthehillbook2.bin
37
- racingkings: # List of book file paths for variant racingkings.
38
- - engines/racingkingsbook1.bin
39
- - engines/racingkingsbook2.bin
40
- "3check": # List of book file paths for variant 3check.
41
- - engines/threecheckbook1.bin
42
- - engines/threecheckbook2.bin
43
-
44
- min_weight: 1
45
- selection: "weighted_random"
46
- max_depth: 20
47
- normalization: "none"
48
-
49
- draw_or_resign:
50
- resign_enabled: false
51
  resign_score: -1000 # If the score is less than or equal to this value, the bot resigns (in cp).
52
  resign_for_egtb_minus_two: true # If true the bot will resign in positions where the online_egtb returns a wdl of -2.
53
  resign_moves: 3 # How many moves in a row the score has to be below the resign value.
@@ -62,13 +45,13 @@ polyglot:
62
  max_retries: 2 # The maximum amount of retries when getting an online move.
63
  # max_depth: 10 # How many moves from the start to take from online books. Default is no limit.
64
  chessdb_book:
65
- enabled: true # Whether or not to use chessdb book.
66
  min_time: 20 # Minimum time (in seconds) to use chessdb book.
67
  max_time: 10800 # Maximum starting game time (in seconds) to use chessdb book.
68
  move_quality: "good" # One of "all", "good", "best".
69
  min_depth: 20 # Only for move_quality: "best".
70
  lichess_cloud_analysis:
71
- enabled: true # Whether or not to use lichess cloud analysis.
72
  min_time: 20 # Minimum time (in seconds) the bot must have to use cloud analysis.
73
  max_time: 10800 # Maximum starting game time (in seconds) the bot must have to use cloud analysis.
74
  move_quality: "best" # One of "good", "best".
@@ -76,15 +59,15 @@ polyglot:
76
  min_depth: 20
77
  min_knodes: 0
78
  lichess_opening_explorer:
79
- enabled: true
80
  min_time: 20
81
  max_time: 10800 # Maximum starting game time (in seconds) the bot must have to use the lichess opening explorer.
82
- source: "lichess" # Switched to "lichess" to properly fetch community openings for variants
83
  player_name: "" # The lichess username. Leave empty for the bot's username to be used. Used only when source is "player".
84
  sort: "winrate" # One of "winrate", "games_played"
85
  min_games: 10 # Minimum number of times a move must have been played to be chosen.
86
  online_egtb:
87
- enabled: true # Whether or not to enable online endgame tablebases.
88
  min_time: 20 # Minimum time (in seconds) the bot must have to use online EGTBs.
89
  max_time: 10800 # Maximum starting game time (in seconds) the bot must have to use online EGTBs.
90
  max_pieces: 8 # Maximum number of pieces on the board to use endgame tablebases.
@@ -112,19 +95,17 @@ polyglot:
112
  homemade_options:
113
  # Hash: 256
114
 
115
- uci_options:
116
- Use NNUE: true
117
- UCI_VariantPath: "./fairy/variants.ini" # Dynamically loads rules/NNUE parameters for all supported variants
118
  Move Overhead: 100 # Increase if your bot flags games too often.
119
  Threads: 4 # Max CPU threads the engine can use.
120
- Hash: 256 # FIXED: Reduced to 256MB to fit Hugging Face free tier smoothly without freezing.
121
  SyzygyPath: "./syzygy/" # Paths to Syzygy endgame tablebases that the engine reads.
122
  UCI_ShowWDL: true # Show the chance of the engine winning.
123
- go_commands: # Additional options to pass to the UCI go command.
124
- # nodes: 150000 # Search so many nodes only.
125
- # depth: 22 # Search depth ply only.
126
- movetime: 3000 # Integer. Search exactly movetime milliseconds.
127
- ponder: true # TURNED OFF: Forces engine to start fresh and respect the 3-second limit every single turn.
128
  # xboard_options: # Arbitrary XBoard options passed to the engine.
129
  # cores: "4"
130
  # memory: "4096"
@@ -133,7 +114,7 @@ polyglot:
133
  # nalimov: "Nalimov Path"
134
  # scorpio: "Scorpio Path"
135
  # syzygy: "Syzygy Path"
136
- # go_commands: # Additional options to pass to the XBoard go command.
137
  # depth: 5 # Search depth ply only.
138
  # Do note that the go commands 'movetime' and 'nodes' are invalid and may cause bad time management for XBoard engines.
139
 
@@ -149,7 +130,7 @@ quit_after_all_games_finish: false # If set to true, then pressing Ctrl-C to qui
149
  correspondence:
150
  move_time: 60 # Time in seconds to search in correspondence games.
151
  checkin_period: 300 # How often to check for opponent moves in correspondence games after disconnecting.
152
- disconnect_time: 150 # Time before disconnecting from a correspondence game.
153
  ponder: false # Ponder in correspondence games the bot is connected to.
154
 
155
  challenge: # Incoming challenges.
@@ -157,7 +138,6 @@ challenge: # Incoming challenges.
157
  sort_by: "best" # Possible values: "best" and "first".
158
  preference: "none" # Possible values: "none", "human", "bot".
159
  accept_bot: true # Accepts challenges coming from other bots.
160
- accept_human: true
161
  only_bot: false # Accept challenges by bots only.
162
  max_increment: 20 # Maximum amount of increment to accept a challenge in seconds. The max is 180. Set to 0 for no increment.
163
  min_increment: 0 # Minimum amount of increment to accept a challenge in seconds.
@@ -168,21 +148,21 @@ challenge: # Incoming challenges.
168
  min_days: 1 # Minimum number of days per move to accept a challenge for a correspondence game.
169
  variants: # Chess variants to accept (https://lichess.org/variant).
170
  - standard
171
- - fromPosition
172
- - antichess
173
- - atomic
174
- - chess960
175
- - crazyhouse
176
- - horde
177
- - kingOfTheHill
178
- - racingKings
179
- - threeCheck
180
  time_controls: # Time controls to accept (bots are not allowed to play ultraBullet).
181
  - bullet
182
  - blitz
183
  - rapid
184
  - classical
185
- - correspondence
186
  modes: # Game modes to accept.
187
  - casual # Unrated games.
188
  - rated # Rated games - must comment if the engine doesn't try to win.
@@ -196,10 +176,10 @@ challenge: # Incoming challenges.
196
  # - user4
197
  # recent_bot_challenge_age: 60 # Maximum age of a bot challenge to be considered recent in seconds
198
  # max_recent_bot_challenges: 2 # Maximum number of recent challenges that can be accepted from the same bot
199
- # min_rating: 0 # Minimum rating of the challenger to accept a challenge.
200
- # max_rating: 4000 # Maximum rating of the challenger to accept a challenge. The maximum rating in lichess is 4000.
201
  # rating_difference: 300 # Maximum rating difference between the bot and the challenger. Overrides min_rating and max_rating if set.
202
- bullet_requires_increment: true # Require that bullet game challenges from bots have a non-zero increment
203
  max_simultaneous_games_per_user: 5 # Maximum number of simultaneous games with the same user
204
 
205
  greeting:
@@ -207,9 +187,9 @@ greeting:
207
  # {opponent} to insert opponent's name
208
  # {me} to insert bot's name
209
  # Any other words in curly braces will be removed.
210
- hello: "Hi! I'm {me}. I am a very excited chess engine, though it can take some time to move." # Message to send to opponent chat at the start of a game
211
- goodbye: "Good game! See you next time!" # Message to send to opponent chat at the end of a game
212
- hello_spectators: "Hi! I'm {me}. Hi spectators! Type !help for a list of commands I can respond to." # Message to send to spectator chat at the start of a game
213
  goodbye_spectators: "Thanks for watching!" # Message to send to spectator chat at the end of a game
214
 
215
  # pgn_directory: "game_records" # A directory where PGN-format records of the bot's games are kept
@@ -229,9 +209,9 @@ matchmaking:
229
  challenge_increment: # Increment in seconds of the challenge (to be chosen at random).
230
  - 1
231
  - 2
232
- # challenge_days: # Days for correspondence challenge (to be chosen at random).
233
- # - 1
234
- # - 2
235
  # opponent_min_rating: 600 # Opponents rating should be above this value (600 is the minimum rating in lichess).
236
  # opponent_max_rating: 4000 # Opponents rating should be below this value (4000 is the maximum rating in lichess).
237
  opponent_rating_difference: 300 # The maximum difference in rating between the bot's rating and opponent's rating.
@@ -270,4 +250,4 @@ matchmaking:
270
  # - 3
271
  # challenge_mode: casual
272
  #
273
- # The following configurations cannot be overridden: allow_matchmaking, challenge_timeout, challenge_filter and block_list.
 
1
  token: "lip_QudNlmFbx2p50WgrAV4x" # Lichess OAuth2 Token.
2
  url: "https://lichess.org/" # Lichess base URL.
3
 
 
4
  engine: # Engine settings.
5
+ dir: "./engines/stockfish" # Directory containing the engine. This can be an absolute path or one relative to lichess-bot/.
6
+ name: "stockfish-ubuntu-x86-64-avx2fd" # Binary name of the engine to use.
7
  debug: False # When enabled, log all startup communication with the engine.
8
+ # interpreter: "java"
9
+ # interpreter_options:
10
+ # - "-jar"
11
+ working_dir: "" # Directory where the chess engine will read and write files. If blank or missing, the current directory is used.
12
+ # NOTE: If working_dir is set, the engine will look for files and directories relative to this directory, not where lichess-bot was launched. Absolute paths are unaffected.
13
  protocol: "uci" # "uci", "xboard" or "homemade"
14
+ ponder: true # Think on opponent's time.
15
+
16
+ polyglot:
17
+ enabled: false # Activate polyglot book.
18
+ book:
19
+ standard: # List of book file paths for variant standard.
20
+ - engines/book1.bin
21
+ - engines/book2.bin
22
+ # atomic: # List of book file paths for variant atomic.
23
+ # - engines/atomicbook1.bin
24
+ # - engines/atomicbook2.bin
25
+ # etc.
26
+ # Use the same pattern for 'chess960', 'giveaway' (antichess), 'crazyhouse', 'horde', 'kingofthehill', 'racingkings' and '3check' as well.
27
+ min_weight: 1 # Does not select moves with weight below min_weight (min 0, max: 100 if normalization isn't "none" else 65535).
28
+ selection: "weighted_random" # Move selection is one of "weighted_random", "uniform_random" or "best_move" (but not below the min_weight in the 2nd and 3rd case).
29
+ max_depth: 20 # How many moves from the start to take from the book.
30
+ normalization: "none" # Normalization method for the book weights. One of "none", "sum", or "max".
31
+
32
+ draw_or_resign:
33
+ resign_enabled: false # Whether or not the bot should resign.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  resign_score: -1000 # If the score is less than or equal to this value, the bot resigns (in cp).
35
  resign_for_egtb_minus_two: true # If true the bot will resign in positions where the online_egtb returns a wdl of -2.
36
  resign_moves: 3 # How many moves in a row the score has to be below the resign value.
 
45
  max_retries: 2 # The maximum amount of retries when getting an online move.
46
  # max_depth: 10 # How many moves from the start to take from online books. Default is no limit.
47
  chessdb_book:
48
+ enabled: false # Whether or not to use chessdb book.
49
  min_time: 20 # Minimum time (in seconds) to use chessdb book.
50
  max_time: 10800 # Maximum starting game time (in seconds) to use chessdb book.
51
  move_quality: "good" # One of "all", "good", "best".
52
  min_depth: 20 # Only for move_quality: "best".
53
  lichess_cloud_analysis:
54
+ enabled: false # Whether or not to use lichess cloud analysis.
55
  min_time: 20 # Minimum time (in seconds) the bot must have to use cloud analysis.
56
  max_time: 10800 # Maximum starting game time (in seconds) the bot must have to use cloud analysis.
57
  move_quality: "best" # One of "good", "best".
 
59
  min_depth: 20
60
  min_knodes: 0
61
  lichess_opening_explorer:
62
+ enabled: false
63
  min_time: 20
64
  max_time: 10800 # Maximum starting game time (in seconds) the bot must have to use the lichess opening explorer.
65
+ source: "masters" # One of "lichess", "masters", "player"
66
  player_name: "" # The lichess username. Leave empty for the bot's username to be used. Used only when source is "player".
67
  sort: "winrate" # One of "winrate", "games_played"
68
  min_games: 10 # Minimum number of times a move must have been played to be chosen.
69
  online_egtb:
70
+ enabled: false # Whether or not to enable online endgame tablebases.
71
  min_time: 20 # Minimum time (in seconds) the bot must have to use online EGTBs.
72
  max_time: 10800 # Maximum starting game time (in seconds) the bot must have to use online EGTBs.
73
  max_pieces: 8 # Maximum number of pieces on the board to use endgame tablebases.
 
95
  homemade_options:
96
  # Hash: 256
97
 
98
+ uci_options: # Arbitrary UCI options passed to the engine.
 
 
99
  Move Overhead: 100 # Increase if your bot flags games too often.
100
  Threads: 4 # Max CPU threads the engine can use.
101
+ Hash: 512 # Max memory (in megabytes) the engine can allocate.
102
  SyzygyPath: "./syzygy/" # Paths to Syzygy endgame tablebases that the engine reads.
103
  UCI_ShowWDL: true # Show the chance of the engine winning.
104
+ # go_commands: # Additional options to pass to the UCI go command.
105
+ # nodes: 1 # Search so many nodes only.
106
+ # depth: 5 # Search depth ply only.
107
+ # movetime: 1000 # Integer. Search exactly movetime milliseconds.
108
+
109
  # xboard_options: # Arbitrary XBoard options passed to the engine.
110
  # cores: "4"
111
  # memory: "4096"
 
114
  # nalimov: "Nalimov Path"
115
  # scorpio: "Scorpio Path"
116
  # syzygy: "Syzygy Path"
117
+ # go_commands: # Additional options to pass to the XBoard go command.
118
  # depth: 5 # Search depth ply only.
119
  # Do note that the go commands 'movetime' and 'nodes' are invalid and may cause bad time management for XBoard engines.
120
 
 
130
  correspondence:
131
  move_time: 60 # Time in seconds to search in correspondence games.
132
  checkin_period: 300 # How often to check for opponent moves in correspondence games after disconnecting.
133
+ disconnect_time: 150 # Time before disconnecting from a correspondence game.
134
  ponder: false # Ponder in correspondence games the bot is connected to.
135
 
136
  challenge: # Incoming challenges.
 
138
  sort_by: "best" # Possible values: "best" and "first".
139
  preference: "none" # Possible values: "none", "human", "bot".
140
  accept_bot: true # Accepts challenges coming from other bots.
 
141
  only_bot: false # Accept challenges by bots only.
142
  max_increment: 20 # Maximum amount of increment to accept a challenge in seconds. The max is 180. Set to 0 for no increment.
143
  min_increment: 0 # Minimum amount of increment to accept a challenge in seconds.
 
148
  min_days: 1 # Minimum number of days per move to accept a challenge for a correspondence game.
149
  variants: # Chess variants to accept (https://lichess.org/variant).
150
  - standard
151
+ # - fromPosition
152
+ # - antichess
153
+ # - atomic
154
+ # - chess960
155
+ # - crazyhouse
156
+ # - horde
157
+ # - kingOfTheHill
158
+ # - racingKings
159
+ # - threeCheck
160
  time_controls: # Time controls to accept (bots are not allowed to play ultraBullet).
161
  - bullet
162
  - blitz
163
  - rapid
164
  - classical
165
+ # - correspondence
166
  modes: # Game modes to accept.
167
  - casual # Unrated games.
168
  - rated # Rated games - must comment if the engine doesn't try to win.
 
176
  # - user4
177
  # recent_bot_challenge_age: 60 # Maximum age of a bot challenge to be considered recent in seconds
178
  # max_recent_bot_challenges: 2 # Maximum number of recent challenges that can be accepted from the same bot
179
+ # min_rating: 0 # Minimum rating of the challenger to accept a challenge.
180
+ # max_rating: 4000 # Maximum rating of the challenger to accept a challenge. The maximum rating in lichess is 4000.
181
  # rating_difference: 300 # Maximum rating difference between the bot and the challenger. Overrides min_rating and max_rating if set.
182
+ bullet_requires_increment: false # Require that bullet game challenges from bots have a non-zero increment
183
  max_simultaneous_games_per_user: 5 # Maximum number of simultaneous games with the same user
184
 
185
  greeting:
 
187
  # {opponent} to insert opponent's name
188
  # {me} to insert bot's name
189
  # Any other words in curly braces will be removed.
190
+ hello: "Hi! I'm {me}. Good luck! Type !help for a list of commands I can respond to." # Message to send to opponent chat at the start of a game
191
+ goodbye: "Good game!" # Message to send to opponent chat at the end of a game
192
+ hello_spectators: "Hi! I'm {me}. Type !help for a list of commands I can respond to." # Message to send to spectator chat at the start of a game
193
  goodbye_spectators: "Thanks for watching!" # Message to send to spectator chat at the end of a game
194
 
195
  # pgn_directory: "game_records" # A directory where PGN-format records of the bot's games are kept
 
209
  challenge_increment: # Increment in seconds of the challenge (to be chosen at random).
210
  - 1
211
  - 2
212
+ # challenge_days: # Days for correspondence challenge (to be chosen at random).
213
+ # - 1
214
+ # - 2
215
  # opponent_min_rating: 600 # Opponents rating should be above this value (600 is the minimum rating in lichess).
216
  # opponent_max_rating: 4000 # Opponents rating should be below this value (4000 is the maximum rating in lichess).
217
  opponent_rating_difference: 300 # The maximum difference in rating between the bot's rating and opponent's rating.
 
250
  # - 3
251
  # challenge_mode: casual
252
  #
253
+ # The following configurations cannot be overridden: allow_matchmaking, challenge_timeout, challenge_filter and block_list.