|
||
Title: Quick Bot interface kit question Post by heroicjanitor on May 3rd, 2011, 5:55am How exactly do I get this to work with a java class? I have a class which works when I run it and give it the position file as an argument, it selects a move and prints to standard output. I have edited the bot.cfg file to point at it but it doesn't seem to find it and I don't know why. I've seen the sample java bot which uses it but can't seem to get that to work either, and it doesn't use the kit in the same way I want to either so I can't figure out much about it. Basically from other topics here and fro mthe kit itself it seems like it should be easy to get it to work with my class, so I must be missing something. |
||
Title: Re: Quick Bot interface kit question Post by jdb on May 3rd, 2011, 11:09am Are you using the Arimaa Engine Interface kit (AEI) ? I could be mistaken, but based on your description, it sounds like you are using the old interface. |
||
Title: Re: Quick Bot interface kit question Post by heroicjanitor on May 3rd, 2011, 12:29pm You're right I am, I thought it was supposed to be easier to set up. It works with its own getMove, written in perl, but it won't work with my Java class. |
||
Title: Re: Quick Bot interface kit question Post by jdb on May 3rd, 2011, 1:00pm I looked through some old code. In order to get clueless to work with the old interface kit, in the bot.cfg file, $C{getMove} = "perl ./getMove"; was changed to $C{getMove} = "java -Xmx2G -classpath test.jar arimaa3.ArimaaMain"; The mainline for using the old interface code from ArimaaMain: Quote:
The gamestate file is in args[2]. Hope this helps. |
||
Title: Re: Quick Bot interface kit question Post by heroicjanitor on May 3rd, 2011, 6:20pm It works now! :D Thanks a lot for your help :) |
||
Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |