Skip to content

Commit

Permalink
remove wall beneath door
Browse files Browse the repository at this point in the history
  • Loading branch information
epignatelli committed Jun 27, 2023
1 parent f2fbd61 commit f26571f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions navix/environments/keydoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def reset(self, key: KeyArray) -> Timestep:
goal_pos = random_positions(k2, second_room)
goals = Goal.create(position=goal_pos, probability=jnp.asarray(1.0))

# remove the wall beneath the door
grid = grid.at[tuple(door_pos)].set(0)

state = State(
key=key,
Expand Down

0 comments on commit f26571f

Please sign in to comment.