Skip to content

Commit

Permalink
Formatting error in create_custom_env.md (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
carschandler authored Nov 12, 2024
1 parent 88e02a1 commit 0807380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/introduction/create_custom_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ For our environment, several things need to happen during the step function:
- We use the self._action_to_direction to convert the discrete action (e.g., 2) to a grid direction with our agent location. To prevent the agent from going out of bounds of the grid, we clip the agent's location to stay within bounds.
- We compute the agent's reward by checking if the agent's current position is equal to the target's location.
- Since the environment doesn't truncate internally (we can apply a time limit wrapper to the environment during :meth:make), we permanently set truncated to False.
- Since the environment doesn't truncate internally (we can apply a time limit wrapper to the environment during :meth:`make`), we permanently set truncated to False.
- We once again use _get_obs and _get_info to obtain the agent's observation and auxiliary information.
```

Expand Down

0 comments on commit 0807380

Please sign in to comment.