-
Notifications
You must be signed in to change notification settings - Fork 0
Running the code
SimonCraenen edited this page Nov 1, 2017
·
5 revisions
Clone the github repository 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.
In GVGAI-JavaClient src folder, there is the TestLearningClient.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 extend utils.AbstractPlayer. Running is done with the oneclickRunFromJavaClient.bat.
Running so you can play yourself is done with the Test.java in the general GVGAI_Project - src - tracks - singlePlayer directory.
- 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.
- There might be a need to manually create a logs folder and a clientLogs.txt file / adjusting the code where the errors occurs and checking if the folder exists otherwise mkdirs()