示例#1
0
 def NewScenario(self, inc=1):
     if 'episode_number' not in self._values:
         self._values['episode_number'] = 0
     self._values['episode_number'] += inc
     self._scenario_values = {}
     from gfootball.env import scenario_builder
     self._scenario_cfg = scenario_builder.Scenario(self).ScenarioConfig()
示例#2
0
 def NewScenario(self):
     if 'episode_number' not in self._values:
         self._values['episode_number'] = 0
     self._values['episode_number'] += 1
     self._scenario_values = {
         'deterministic': False,
         'end_episode_on_score': False,
         'end_episode_on_possession_change': False,
         'end_episode_on_out_of_play': False,
         'game_duration': 3000,
         'offsides': True,
     }
     from gfootball.env import scenario_builder
     self._scenario_cfg = scenario_builder.Scenario(self).ScenarioConfig()