Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore Fixed viz_spectator CVAR for singleplayer/coop mode, updated cig exam… Jul 2, 2018
README.md Updated python examples, added script to test building with all gcc a… Nov 15, 2018
automap.py Added argparse and changed import in most of python examples. Jul 4, 2018
basic.py Updated Pyhton binding, fixed passing lines information from the engi… Jan 13, 2019
buffers.py Added argparse and changed import in most of python examples. Jul 4, 2018
cig_multiplayer.py Changed default python version of examples to 3. Jul 3, 2018
cig_multiplayer_bots.py Changed default python version of examples to 3. Jul 3, 2018
cig_multiplayer_host.py Updated docs Nov 14, 2018
cig_singleplayer.py Changed default python version of examples to 3. Jul 3, 2018
cig_singleplayer_host.py Changed default python version of examples to 3. Jul 3, 2018
delta_buttons.py Added argparse and changed import in most of python examples. Jul 4, 2018
fps.py Added argparse and changed import in most of python examples. Jul 4, 2018
labels.py Added argparse and changed import in most of python examples. Jul 4, 2018
learning_pytorch.py Changed default python version of examples to 3. Jul 3, 2018
learning_pytorch_test.py Updated python examples, added script to test building with all gcc a… Nov 15, 2018
learning_tensorflow.py Add missing 'not' in Q-learning equation description Jul 16, 2018
learning_theano.py Changed default python version of examples to 3. Jul 3, 2018
multiple_instances.py Changed default python version of examples to 3. Jul 3, 2018
multiple_instances_advance.py Changed default python version of examples to 3. Jul 3, 2018
objects_and_map.py Updated Pyhton binding Jan 11, 2019
objects_and_sectors.py Updated Pyhton binding, fixed passing lines information from the engi… Jan 13, 2019
pyoblige.py Added argparse and changed import in most of python examples. Jul 4, 2018
record_episodes.py Changed default python version of examples to 3. Jul 3, 2018
record_multiplayer.py Changed default python version of examples to 3. Jul 3, 2018
scenarios.py Added argparse and changed import in most of python examples. Jul 4, 2018
seed.py Added argparse and changed import in most of python examples. Jul 4, 2018
shaping.py Added argparse and changed import in most of python examples. Jul 4, 2018
spectator.py Added argparse and changed import in most of python examples. Jul 4, 2018
test_pytorch.py Changed default python version of examples to 3. Jul 3, 2018
test_recording.py Updated python examples, added script to test building with all gcc a… Nov 15, 2018
ticrate.py Added argparse and changed import in most of python examples. Jul 4, 2018

README.md

For the examples to work properly you need to install ViZDoom system-wide with pip or create a link to dir with ViZDoom pip_package or set doom_game_path and vizdoom_path manually or in config files.

Troubleshooting

  • SystemError: dynamic module not initialized properly may mean that you are trying the run an example using python3 instead of python2.

Examples

basic.py

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.

buffers.py

cig_multiplayer.py, cig_multiplayer_host.py

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

cig_multiplayer_bots.py

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

cig_singleplayer.py, cig_multiplayer_host.py

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

delta_buttons.py

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

format.py

Presents different formats of the screen buffer. OpenCV is used to display the images.

fps.py

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

labels.py

learning_pytorch.py, learning_pytorch_test.py

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

learning_theano.py

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

learning_tensorflow.py

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

multiple_instances.py, multiple_instances_advance.py

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

oblige.py (level generator)

Contains an example of how to combine PyOblige with ViZDoom.

record_episodes.py

record_multiplayer.py

scenarios.py

Presents different scenarios that come with ViZDoom environment.

seed.py

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).

shaping.py

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

spectator.py

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

ticrate.py