social_dilemmas/envs/cleanup.py
def custom_reset(self):
        """Initialize the walls and the waste"""
        for waste_start_point in self.waste_start_points:
            self.single_update_map(waste_start_point[0], waste_start_point[1], b"H")
        for river_point in self.river_points:
            self.single_update_map(river_point[0], river_point[1], b"R")
        for stream_point in self.stream_points:
            self.single_update_map(stream_point[0], stream_point[1], b"S")
        self.compute_probabilities()
Initialize the walls and the waste
Initialize the walls and the waste
Initialize the walls and the waste
def custom_reset(self):
        for waste_start_point in self.waste_start_points:
            self.single_update_map(waste_start_point[0], waste_start_point[1], b"H")
        for river_point in self.river_points:
            self.single_update_map(river_point[0], river_point[1], b"R")
        for stream_point in self.stream_points:
            self.single_update_map(stream_point[0], stream_point[1], b"S")
        self.compute_probabilities()
def custom_reset ( self ) : for waste_start_point in self . waste_start_points : self . single_update_map ( waste_start_point [ 0 ] , waste_start_point [ 1 ] , b"H" ) for river_point in self . river_points : self . single_update_map ( river_point [ 0 ] , river_point [ 1 ] , b"R" ) for stream_point in self . stream_points : self . single_update_map ( stream_point [ 0 ] , stream_point [ 1 ] , b"S" ) self . compute_probabilities ( )
Initialize the walls and the waste
Initialize the walls and the waste
"""Initialize the walls and the waste"""
self