Esempio n. 1
0
 def __init__(self, config: Config):
     self.config = config
     self.reader = NonBlockingStreamReader(sys.stdin)
     self.handler = NBoardProtocolVersion2(config, self)
     self.running = False
     self.nc = self.config.nboard  # shorcut
     #
     self.env = ReversiEnv().reset()
     self.model = load_model(self.config)
     self.play_config = self.config.play
     self.player = self.create_player()
     self.turn_of_nboard = None
Esempio n. 2
0
 def _load_model(self):
     return load_model(self.config)