Skip to content

Commit

Permalink
fix exploration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rizar committed Jan 20, 2019
1 parent 2b41f0c commit a70cb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion babyai/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ def take_action(self, action):

# Find the closest unseen position
_, unseen_pos, with_blockers = self.bot.shortest_path(
lambda pos, cell: not self.bot.vis_mask[pos]
lambda pos, cell: not self.bot.vis_mask[pos],
try_with_blockers=True
)

if unseen_pos:
Expand Down

0 comments on commit a70cb40

Please sign in to comment.