def __init__(self, board, commands, options, go_commands={}, silence_stderr=False): commands = commands[0] if len(commands) == 1 else commands self.go_commands = go_commands self.engine = engine_ctrl.Engine(commands) self.engine.usi() if options: for name, value in options["options"].items(): self.engine.setoption(name, value)
def __init__(self, board, commands, options, silence_stderr=False): commands = commands[0] if len(commands) == 1 else commands self.go_commands = options.get("go_commands", {}) print("GO, OPTIONS:", options) self.engine = engine_ctrl.Engine(commands) self.engine.usi() if options: for name, value in options["options"].items(): self.engine.setoption(name, value)