gym-soccer icon indicating copy to clipboard operation
gym-soccer copied to clipboard

how to use gym-soccer

Open YidingYu opened this issue 7 years ago • 3 comments

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 avatar Jun 13 '17 12:06 YidingYu

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

lucasosouza avatar Oct 24 '17 11:10 lucasosouza

An alternative way:

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

iretiayo avatar Nov 11 '17 20:11 iretiayo

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?

olavt avatar Mar 05 '18 18:03 olavt