The source code for this chapter can be found here:
https://github.com/PacktPublishing/Java-Deep-Learning-Cookbook/blob/master/09_Using_RL4J_for_Reinforcement%20learning/sourceCode/cookbookapp/src/main/java/MalmoExample.java.
After cloning our GitHub repository, navigate to the Java-Deep-Learning-Cookbook/09_Using_RL4J_for_Reinforcement learning/sourceCode directory. Then, import the cookbookapp project as a Maven project by importing pom.xml.
You need to set up a Malmo client to run the source code. First, download the latest Project Malmo release as per your OS (https://github.com/Microsoft/malmo/releases):
- For Linux OS, follow the installation instructions here: https://github.com/microsoft/malmo/blob/master/doc/install_linux.md.
- For Windows OS, follow the installation instructions here: https://github.com/microsoft/malmo/blob/master/doc/install_windows...