注释删除

This commit is contained in:
p57492168 2022-06-21 21:54:17 +08:00
parent 4f68d89ca6
commit c84e8cea34
1 changed files with 1 additions and 4 deletions

View File

@ -8,7 +8,7 @@ class WildFire(object):
super().__init__()
self.actions_to_do = []
self.delta_x = (0, 0, 1, -1, )
self.delta_y = (1, -1, 0, 0, )
self.delta_y = (1, -1, 0, 0, )
@ staticmethod
def _is_valid_index(index, an_array):
@ -23,12 +23,9 @@ class WildFire(object):
def step(self, state, info):
if not self.empty():
# if there're actions to do
action = self.actions_to_do[0]
del self.actions_to_do[0]
return [action]
# print(state)
x, y, _ = state
fields = info['fields']