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

Openai gym support? #27

Open
xkianteb opened this issue Feb 21, 2020 · 6 comments
Open

Openai gym support? #27

xkianteb opened this issue Feb 21, 2020 · 6 comments

Comments

@xkianteb
Copy link

This mainly a question. How difficult would it be to wrap this framework in a openai gym environment, so I could train a reinforcement learning agent to play this game ?

Does the framework support access to the Ai bot? Meaning can let the ai bot drive and record states and actions it visited and took?

@Haoen-Cui
Copy link

@xkianteb I recently was interested in training a bot playing the hockey game so I rolled out my own environment extending gym.Env. I think it was pretty straightforward for me to follow the code in examples/hockey_gamestate.py for my use case. I won't be able to share my specific implementation since it is used for a class project.

I encountered a few design decisions which I think can only be best handled if you write your own environment. For example,

  • What should I consider as an environment? For example, in the hockey game, you can play up to 2 vs 2. Should I train a team (2 players) at a time or maybe both teams?
  • What should be the state space? Real-world physical quantities or maybe a couple of frames of camera images?

Disclaimer: I'm not a developer of this project and have only used this game for classwork. Please only consider the above as an (inexperienced) user's comment.

@notjedi
Copy link

notjedi commented Sep 26, 2021

@Haoen-Cui were you able to run hockey_gamestate.py successfully? i'm getting an error as mentioned in #33

@notjedi
Copy link

notjedi commented Sep 26, 2021

@xkianteb did you do it? cause i'm trying to do the same here.

@xkianteb
Copy link
Author

@jedi2610 No I didn't but if you want to collaborate and make it happen I would be up for it.

@notjedi
Copy link

notjedi commented Sep 26, 2021

@jedi2610 No I didn't but if you want to collaborate and make it happen I would be up for it.

@xkianteb that's really cool. i'm down too. how can i contact you tho?

@xkianteb
Copy link
Author

xkianteb commented Sep 30, 2021

My email address is: [email protected]

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

3 participants