June 2018
Intermediate to advanced
318 pages
9h 24m
English
Before diving in, let us familiarize ourselves with a vizdoom environment by seeing a basic example:
from vizdoom import *import randomimport time
game = DoomGame()
game.load_config("basic.cfg")
game.init()
shoot = [0, 0, 1]left = [1, 0, 0]right = [0, 1, 0]actions = [shoot, left, right]
no_of_episodes = 10for i in range(no_of_episodes): # for each episode start the game game.new_episode() # loop until the episode ...
Read now
Unlock full access