Skip to content

Running the code

SimonCraenen edited this page Oct 11, 2017 · 5 revisions

Creating the project in intellij

clone the github respository into a folder. Go to intellij and import project from existing sources. Navigate to the folder where you cloned the repository and select that folder. You should have to select between two projects it finds. Select the JAVA CLIENT project.

The files you need to know

In GVGAI-JavaClient src folder, there is the TesetLearningClient.java file. This is the main place for the code so far. Creating an agent means making a new package in the src folder and creating a class called Agent.java in this package. This class needs to extends utils.AbstractPlayer. Running is done with the oneclcikRunFromJavaClient.bat.

Problems encountered so far

  • The path to javac needs to be set so that the bat file can compile the java code files.
  • There cannot be a space in any of the file names.
  • In the oneclickRunFromJavaClient.bat, make sure to have your correct jdk path selected.

Clone this wiki locally