(self, action)
| 28 | self.action_map = self.env.getActionSet() #[None, 119] |
| 29 | |
| 30 | def step(self, action): |
| 31 | action = self.action_map[action] |
| 32 | reward = self.env.act(action) |
| 33 | done = self.env.game_over() |
| 34 | obs = self.get_observation() |
| 35 | # don't bother returning an info dictionary like gym |
| 36 | return obs, reward, done |
| 37 | |
| 38 | def reset(self): |
| 39 | self.env.reset_game() |
no test coverage detected