Skip to content

Latest commit

 

History

History

python

Python examples

For the examples to work properly you need to install ViZDoom.

The list of examples

Demonstrates how to use the audio buffer.

Demonstrates how to use the automap buffer.

Demonstrates how to use the most basic features of the environment. It configures the engine, and makes the agent perform random actions. It also prints the current state and the reward earned with every action.

Demonstrates all the visual buffers (screen buffer, depth buffer, labels buffer, map buffer) available in ViZDoom environment.

Demonstrates how to configure and play the multiplayer game for CIG competition.

Demonstrates how to play with bots to simulate the multiplayer game. Helpful for developing an AI agent for CIG competition.

Demonstrates how to configure and play the singleplayer game for CIG competition.

Shows how delta buttons work (they may take values other than 0 and 1 and can be used for precise movement).

Tests the performance of the environment in frames per second. It should give you some idea how fast ViZDoom works on your hardware.

Shows how to use ViZDoom Gymnasium wrapper.

Demonstrates how to use the labels buffer.

Contains an example of how to implement basic Q-learning on the interface within PyTorch.

Contains an example of how to implement basic Q-learning on the interface within Theano.

Contains an example of how to implement basic Q-learning on the interface within Tensorflow.

Contains an example of how to create a "server" and have multiple agents playing on the server at once. Combine with bots.py and learning_x.py to train agents against some AI

Demonstrates how to access list of actors/objects and map geometry of the scenario.

pyoblige.py (level generator)

Contains an example of how to combine PyOblige with ViZDoom.

Demonstrates how to record an episode and replay it.

Demonstrates how to record the multiplayer game and replay it.

Demonstrates how to use save and load functionality build into the game engine.

Presents different scenarios that come with ViZDoom environment.

Shows how to run deterministic episodes by setting the seed. After setting the seed every episode will look the same (if the agent behaves deterministically).

Demonstrates how to make use of the game variables to implement shaping using health_guided.wad scenario.

Shows how to use the SPECTATOR mode in which YOU play Doom and AI is the spectator (intended for apprenticeship learning).

Demonstrates how to use different ticrates in ASYNC mode.