Thibault Duplessis commited on
Commit
bf1f342
·
1 Parent(s): f07b408

fix engine.ucioptions config

Browse files
Files changed (2) hide show
  1. config.yml.default +5 -6
  2. engine_wrapper.py +1 -2
config.yml.default CHANGED
@@ -10,17 +10,16 @@ engine: # engine settings
10
  # gpu: 0 # only if the engine is lczero
11
  polyglot:
12
  enabled: false # activate polyglot book
13
- book: "book.bin" # book file path
14
  max_depth: 8 # half move max depth
15
  min_weight: 1 # best move weight
16
  random: true # select move randomly otherwise select by min weight
 
 
 
 
17
  silence_stderr: false # some engines (yes you, leela) are very noisy
18
 
19
- ucioptions: # arbitrary UCI options passed to the engine
20
- Move Overhead: 100 # increase if your bot flags games too often
21
- # Threads: 4
22
- # Hash: "4096"
23
- # Book File: "engines/book.bin"
24
 
25
  xboardoptions:
26
  # cores: "4"
 
10
  # gpu: 0 # only if the engine is lczero
11
  polyglot:
12
  enabled: false # activate polyglot book
13
+ book: "engines/book.bin" # book file path
14
  max_depth: 8 # half move max depth
15
  min_weight: 1 # best move weight
16
  random: true # select move randomly otherwise select by min weight
17
+ ucioptions: # arbitrary UCI options passed to the engine
18
+ Move Overhead: 100 # increase if your bot flags games too often
19
+ Threads: 2 # max CPU threads the engine can use
20
+ Hash: 256 # max memory (in megabytes) the engine can allocate
21
  silence_stderr: false # some engines (yes you, leela) are very noisy
22
 
 
 
 
 
 
23
 
24
  xboardoptions:
25
  # cores: "4"
engine_wrapper.py CHANGED
@@ -14,7 +14,6 @@ def create_engine(config, board):
14
  gpu = cfg.get("gpu")
15
 
16
  # TODO: ucioptions should probably be a part of the engine subconfig
17
- ucioptions = config.get("ucioptions")
18
  engine_type = cfg.get("protocol")
19
  commands = [engine_path]
20
  if weights:
@@ -32,7 +31,7 @@ def create_engine(config, board):
32
  if engine_type == "xboard":
33
  return XBoardEngine(board, commands, config.get("xboardoptions"), silence_stderr)
34
 
35
- return UCIEngine(board, commands, config.get("ucioptions"), silence_stderr)
36
 
37
 
38
  class EngineWrapper:
 
14
  gpu = cfg.get("gpu")
15
 
16
  # TODO: ucioptions should probably be a part of the engine subconfig
 
17
  engine_type = cfg.get("protocol")
18
  commands = [engine_path]
19
  if weights:
 
31
  if engine_type == "xboard":
32
  return XBoardEngine(board, commands, config.get("xboardoptions"), silence_stderr)
33
 
34
+ return UCIEngine(board, commands, cfg.get("ucioptions"), silence_stderr)
35
 
36
 
37
  class EngineWrapper: