OpenAI Integrating custom game into a gym environment

QuestionsOpenAI Integrating custom game into a gym environment
sethbeckerman5 Staff asked 8 years ago

[Introduction] I’m a beginner with OpenAI, I have made a custom game into which I would like to implement a self-learning agent. I followed this guide to set up a repository on GitHub, however I do not understand how I could format my code to work with the contents of gym-foo/gym_foo/envs/foo_env.py

[Question] Is there any chance someone could guide me on how to structure my code to so it’s compatible with:

[Code]

[Additional Information] I will be using a reinforcement learning algorithm from https://github.com/Hvass-Labs/TensorFlow-Tutorials/blob/master/reinforcement_learning.py which from my understanding requires a gym environment in order for gym.make() to work. Any help would greatly be appreciated, if anything more is needed please tell me.

</br />View on Stack Overflow