January 2018
Beginner to intermediate
284 pages
8h 35m
English
In this section, we will implement a simple reinforcement learning example for a game of DuskDrive:
import gymimport universeenv = gym.make('flashgames.DuskDrive-v0')env.configure(remotes=1)
observations = env.reset()
Once the game is initialized to a random start state, we need to continuously provide an action. Since DuskDrive is a racing game, one simple strategy is to simply move forward using the up arrow key.
while True: action = [[('KeyEvent', 'ArrowUp', ...Read now
Unlock full access