Training an agent to play DoomÂ
Doom is a very popular first-person shooter game. The goal of the game is to kill monsters. Doom is another example of a partially observable MDP as the agent's (player) view is limited to 90 degrees. The agent has no idea about the rest of the environment. Now, we will see how can we use DRQN to train our agent to play Doom.Â
Instead of OpenAI Gym, we will use the ViZDoom package to simulate the Doom environment to train our agent. To learn more about the ViZDoom package, check out its official website at http://vizdoom.cs.put.edu.pl/. We can install ViZDoom simply by using the following command:
pip install vizdoom
ViZDoom provides a lot of Doom scenarios and those scenarios can be found in the package folder vizdoom/scenarios
.
Basic Doom game
Before diving in, let us familiarize ourselves with a vizdoom
environment by seeing a basic example:
- Let's load the necessary libraries:
from vizdoom import * import random import time
- Â Create an instance to the
DoomGame
:
game...