Skip to content

Commit

Permalink
Fix Readme example code for use with Gymnasium
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts authored May 20, 2024
1 parent 750d7f9 commit ae0dee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ For simplicity for installing ale-py with Gymnasium, `pip install "gymnasium[ata

```py
import gymnasium as gym
import ale_py

gym.register_envs(ale_py) # unnecessary but helpful for IDEs

env = gym.make('ALE/Breakout-v5', render_mode="human") # remove render_mode in training
obs, info = env.reset()
Expand Down

0 comments on commit ae0dee0

Please sign in to comment.