Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update getting_started.md #84

Merged
merged 2 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This algorithm works by building up a sequence of button presses that do well in

Using ["Proximal Policy Optimization"](https://arxiv.org/abs/1707.06347) by Schulman et al., you can train an agent to play many of the games, though it takes awhile and is much faster with a GPU.

This example requires installing [OpenAI Baselines](https://github.com/openai/baselines). Once installed, you can run it:
This example requires installing [Stable Baselines](https://github.com/DLR-RM/stable-baselines3). Once installed, you can run it:

```shell
python3 -m retro.examples.ppo --game Airstriker-Genesis
Expand Down
5 changes: 3 additions & 2 deletions retro/examples/trivial_random_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ def main():
env = retro.make(game="Airstriker-Genesis")
env.reset()
while True:
obs, rew, done, info = env.step(env.action_space.sample())
action = env.action_space.sample()
observation, reward, terminated, truncated, info = env.step(action)
env.render()
if done:
if terminated or truncated:
env.reset()
env.close()

Expand Down