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

how to use gym-soccer #5

Open
YidingYu opened this issue Jun 13, 2017 · 3 comments
Open

how to use gym-soccer #5

YidingYu opened this issue Jun 13, 2017 · 3 comments

Comments

@YidingYu
Copy link

I have installed gym-soccer and I want to create the gym-soccer environment by running:
import gym
env = gym.make('Soccer-v0')

but it failed. What's the problem? I didn't find any examples using gym-soccer.

@YidingYu YidingYu changed the title how to set use gym-soccer how to use gym-soccer Jun 15, 2017
@lucasosouza
Copy link

lucasosouza commented Oct 24, 2017

You can also instantiate the class directly. Clone the repository, and in root folder:

from gym_soccer import envs
env = envs.soccer_empty_goal.SoccerEmptyGoalEnv()

Might have an easier way... I've just installed it and started to play with

Same for soccer_env.SoccerEnv and soccer_against_keeper.SoccerAgainstKeeperEnv

@iretiayo
Copy link

An alternative way:

import gym_soccer
import gym
env = gym.make('Soccer-v0')

@olavt
Copy link

olavt commented Mar 5, 2018

Are the gym_soccer environments supposed to be registered automatically by gym by doing the "pip install -e ." command, or are there any manual steps required after that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants