openai / gym-soccer

302 stars 172 forks source link

how to use gym-soccer #5

Open YidingYu opened 7 years ago

YidingYu commented 7 years ago

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.

lucasosouza commented 6 years ago

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 commented 6 years ago

An alternative way:

import gym_soccer
import gym
env = gym.make('Soccer-v0')
olavt commented 6 years ago

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?