November 2018
Intermediate to advanced
322 pages
7h 54m
English
In this chapter, we will use the PacMan game as an example, known as MsPacman-v0. Let's explore this game a bit further:
env=gym.make('MsPacman-v0')
print(env.action_space)
The preceding code generates the following output:
Discrete(9)
print(env.observation_space)
The preceding code generates the following output:
Box(210, 160, 3)
Thus, the observation space has three color channels and is of size ...
Read now
Unlock full access