<jupyter_start><jupyter_text>RL Assignment - Design a DQN Agent for Moutain Car Game Environment<jupyter_code>env = gym.make('MountainCar-v0')
for e in range(20):
    observation = env.reset()
    for t in range(100):
        env.render()
        #print(observation)
        action = env.action_space.sample()
        observation, reward, done, other_info = env.step(action)
        
        if done: #Game Over
            print("Game Episode :{}/{}, High Score:{},Exploration Rate:{:.2}".format(e,20,t,1.0))
            break

env.close()
print("Game Over!")<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup