You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I code for hobby and want to learn about neuroevolution and came across your tutorial in google. But I have difficulty understanding what is happening with predict_action() and showGameOverScreen() functions. I tried to read from your orginal code in github but was overwhelmed by it. It contains both the code for neuroevolution algorithm and flappy bird game engine together which makes the code unredable for a novice. I had earlier worked with OpenAI's Gym and I its easy to work with games in OpenAI's Gym especially very basic CartPole-v0. How can I port your flappy bird genetic algorithm to gym's CartPole-v0
import gym
env = gym.make('CartPole-v0')
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.render()
print(observation)
action = env.action_space.sample()
observation, reward, done, info = env.step(action)
if done:
print("Episode finished after {} timesteps".format(t+1))
break
The text was updated successfully, but these errors were encountered:
I code for hobby and want to learn about neuroevolution and came across your tutorial in google. But I have difficulty understanding what is happening with predict_action() and showGameOverScreen() functions. I tried to read from your orginal code in github but was overwhelmed by it. It contains both the code for neuroevolution algorithm and flappy bird game engine together which makes the code unredable for a novice. I had earlier worked with OpenAI's Gym and I its easy to work with games in OpenAI's Gym especially very basic CartPole-v0. How can I port your flappy bird genetic algorithm to gym's CartPole-v0
The text was updated successfully, but these errors were encountered: