social_dilemmas/envs/map_env.py
def reset_map(self):
        """Resets the map to be empty as well as a custom reset set by subclasses"""
        self.world_map = np.full((len(self.base_map), len(self.base_map[0])), b" ", dtype="c")
        self.world_map_color = np.full(
            (len(self.base_map) + self.view_len * 2, len(self.base_map[0]) + self.view_len * 2, 3),
            fill_value=0,
            dtype=np.uint8,
        )
        self.build_walls()
        self.custom_reset()
Resets the map to be empty as well as a custom reset set by subclasses
Resets the map to be empty as well as a custom reset set by subclasses
Resets the map to be empty as well as a custom reset set by subclasses
def reset_map(self):
        self.world_map = np.full((len(self.base_map), len(self.base_map[0])), b" ", dtype="c")
        self.world_map_color = np.full(
            (len(self.base_map) + self.view_len * 2, len(self.base_map[0]) + self.view_len * 2, 3),
            fill_value=0,
            dtype=np.uint8,
        )
        self.build_walls()
        self.custom_reset()
def reset_map ( self ) : self . world_map = np . full ( ( len ( self . base_map ) , len ( self . base_map [ 0 ] ) ) , b" " , dtype = "c" ) self . world_map_color = np . full ( ( len ( self . base_map ) + self . view_len * 2 , len ( self . base_map [ 0 ] ) + self . view_len * 2 , 3 ) , fill_value = 0 , dtype = np . uint8 , ) self . build_walls ( ) self . custom_reset ( )
Resets the map to be empty as well as a custom reset set by subclasses
Resets the map to be empty as well as a custom reset set by subclasses
"""Resets the map to be empty as well as a custom reset set by subclasses"""
self