![]() So I can't use an event loop because it would stop execution of the user's loop. ![]() An example usage is available under environments on this page. The way this api is set-up and used is that the user first instantiates the environment (the video game) and then sets up a loop in which they run the step function of the environment and optionally choose to also place the render method in that same loop depending on whether or not they want to see their AI's actions during that run. ![]() I don't think I can use an event loop to run my graphics. I want to package this and release it on pypi, so I chose pyglet to implement the graphics because I read it is fairly portable. I have enough of the game implemented that I am currently working on the render method. The imitation needs to comply with OpenAI Gym's API, which essentially demands a step method (which takes in the actions the AI determines necessary at that timestep and outputs the state of the game after the timestep), and a render method. I am working on a project where I am developing an imitation of rocket league (a video game) so that I can run reinforcement learning algorithms on the game (I can't run the game itself because it would be too slow). ![]() I am unsure that what I am doing is the right way to go about this problem. I'm hoping someone can provide some guidance, resources, similar projects, etc. Ok so I've spent an embarrassing amount of time on this problem and still am fairly confused.
0 Comments
Leave a Reply. |