Пример #1
0
 def run(self):
     '''
     Starts all games in series.
     '''
     logger.info('running series #%d', self._signature.series_id)
     self._results = {}
     for game_id, initial_jurystate in enumerate(self._initial_jurystates):
         self._signature.game_id = game_id
         _game = Game(initial_jurystate, self._signature,
                      self._players_list)
         _game.run_engine()
         points = _game.get_results()
         self._results[copy(self._signature)] = copy(points)
Пример #2
0
 def test_write_logs(self):
     game = Game(jury_state.JS(), GameSignature(1, 1, 1, 1),
                 players)
     game._write_logs()