Skip to content

Commit

Permalink
fixed multiwalker crashing on completion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
benblack769 committed May 14, 2021
1 parent 81125bb commit 121106c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pettingzoo/sisl/multiwalker/multiwalker_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def scroll_subroutine(self):
rewards += self.terminate_reward
done = [True] * self.n_walkers
if pos[0] > (self.terrain_length - TERRAIN_GRASS) * TERRAIN_STEP:
done = True
done = [True] * self.n_walkers
rewards += self.fall_reward * self.fallen_walkers
if self.terminate_on_fall and np.sum(self.fallen_walkers) > 0:
rewards += self.terminate_reward
Expand Down

0 comments on commit 121106c

Please sign in to comment.