Skip to content

Latest commit

 

History

History
 
 

java

Use CMake to generate Makefile or project or build it using:

javac -classpath "../../bin/java/vizdoom.jar" Example.java
jar cf ../../bin/examples/example.jar Example.class

Examples will be build in vizdoom_root_dir/bin/examples. To run example use:

java -Djava.library.path="../java" -classpath "../java/vizdoom.jar:example.jar" Example

To run the examples, freedoom2.wad should be placed in the scenarios subdirectory.


##Examples

###Basic.java 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.

###CIG.java, CIGHost.java Demonstrates how to configure and play multiplayer game for CIG competition.

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

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

###Multiplayer.java, MultiplayerHost.java Demonstrates how to configure and play multiplayer game.

###Seed.java 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.java Demonstrates how to make use of the game variables to implement shaping using health_guided.wad scenario.

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