def __init__(self, game, ui, visualize=False):
        """
        Initialize Pycolab environment.

        Args:
            game: Pycolab Game Engine object. See https://github.com/deepmind/pycolab/tree/master/pycolab/examples
            ui: Pycolab CursesUI object. See https://github.com/deepmind/pycolab/tree/master/pycolab/examples
            visualize: If set True, the program will visualize the trainings of Pycolab game # TODO
        """
        self.game = game
        self.init_game = copy.deepcopy(self.game)
        self.ui = ui
        self.visualize = visualize

        first_obs, first_reward, _ = self.game.its_showtime()
        self._actions = DMPycolab.get_action_space(self.ui)
        self._states = DMPycolab.get_state_space(first_obs, self.ui._croppers)
def __init__ ( self , game , ui , visualize = False ) : self . game = game self . init_game = copy . deepcopy ( self . game ) self . ui = ui self . visualize = visualize first_obs , first_reward , _ = self . game . its_showtime ( ) self . _actions = DMPycolab . get_action_space ( self . ui ) self . _states = DMPycolab . get_state_space ( first_obs , self . ui . _croppers )
Initialize Pycolab environment.

        Args:
            game: Pycolab Game Engine object. See https://github.com/deepmind/pycolab/tree/master/pycolab/examples
            ui: Pycolab CursesUI object. See https://github.com/deepmind/pycolab/tree/master/pycolab/examples
            visualize: If set True, the program will visualize the trainings of Pycolab game # TODO