Ludii Forum
Set up and running tests - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6)
+--- Thread: Set up and running tests (/showthread.php?tid=642)



Set up and running tests - JacksonToR - 07-11-2021

Hi, I'm currently a second year undergrad student and am currently conducting some research for a program. I'm currently very new to Java and was wondering if there was a comprehensive guide as to how to set up my own AI (yes I've read up on the github on example ai and am just struggling with the whole set up of java project / .jar compiling?/ where I should place my AI and .jar files) and then running a large amount of tests and recording them to see the effectiveness of my AI against other AIs.


RE: Set up and running tests - JacksonToR - 07-11-2021

I've found this link https://www.youtube.com/watch?v=8MhBMEXO8IU&ab_channel=Ludii which was very helpful, however after following the steps exactly, when it tried to load the ai from JAR, nothing would happen (the window to select AI did not pop up) and it would automatically go back to human v human.


RE: Set up and running tests - DennisSoemers - 07-12-2021

Could you share a .jar file that you built like this, containing your custom AI, so I can inspect it and see why it may not work? I'm not 100% sure if the forums allow you to upload .jar files as attachments. If not, I suppose you could upload it in a public dropbox directory or google drive or any other file hosting service like that.


RE: Set up and running tests - MatthewStephenson - 07-13-2021

Hi,

Just to clarify, for the newer versions of Ludii after selecting the "From JAR" option in the player preferences, you also need to click the "Apply" button.
After this, you should be asked to select your AI jar file.

Cheers,
Matthew


RE: Set up and running tests - JacksonToR - 07-20-2021

its all good now I've gotten it working its just that i need to run it on intellij after making the .jar file using eclipse but now I'm stuck on how to get it run like 1000 games with 2 different ai


RE: Set up and running tests - Eric Piette - 07-21-2021

Hi,

We highly recommend using Eclipse and not IntelliJ to work on any code related to Ludii.

Regards,
Eric


RE: Set up and running tests - MatthewStephenson - 07-21-2021

Hi,

Do you mean you wish to select two agents for a game, and then have those two agents play that game 1000 times?

Cheers,
Matthew