philkr / pystk

Python SuperTuxKart interface
Other
45 stars 29 forks source link

Openai gym support? #27

Open xkianteb opened 4 years ago

xkianteb commented 4 years ago

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

@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,

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

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

notjedi commented 2 years ago

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

xkianteb commented 2 years ago

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

notjedi commented 2 years ago

@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 commented 2 years ago

My email address is: kdbrant@umd.edu