|
||
Title: Sample Java Bot Post by omar on Mar 10th, 2006, 7:32pm Jeff Bacher (developer of bot Clueless) has contributed a sample Arimaa bot written in Java. Developers can simply enhance the evaluation function to build their own bot. I've added it to the download page: http://arimaa.com/arimaa/download/ Thanks Jeff. |
||
Title: Re: Sample Java Bot Post by IdahoEv on Mar 10th, 2006, 8:43pm Hey, that's pretty cool; I'm developing in Java as well. I was thinking of releasing my class library that models all the basis elements of Arimaa, but looking at jeff's it may not be necessary; they cover most of the same ground (although in a rather different way; Jeff's code is very "C-like", mine is more like what you'd see in a design patterns textbook. Which means mine is undoubtedly much slower...). It might just add confusion to have two incompatible java classlibs floating around. But thanks much for releasing this; I've pretty much only been working on my eval function, figuring I'd code a tree searcher in Java down the road some day (or port to C). This will help quite a bit. |
||
Title: Re: Sample Java Bot Post by asfaklive on Jan 27th, 2010, 12:00am I have downloaded his program and found in the main he wrote a comment // Used for testing purposes // String file_name = "c:/arimaa/bot/running/gamestate804"; // execute(file_name); Where can I find such a file so that I can check the program first without any effort? Can anybody provide me with such a file so that I can start a test of the bot? Regards. [Sorry previously I have posted this message in the general discussion with title "About 'Arimaa Sample Java Bot' made by Jeff Bacher"] |
||
Title: Re: Sample Java Bot Post by jdb on Jan 27th, 2010, 7:02am The test you mentioned was for testing the gameroom interface. It is not necessary to know about that to use the engine. To run the engine intself, I suggest starting in ArimaaEngine. It contains a program entry point that allows the engine to run on its own. |
||
Title: Re: Sample Java Bot Post by asfaklive on Jan 27th, 2010, 9:11pm Hi ! Thanks for the reply. I have tried that. But I am getting java.lang.OutOfMemoryError: Java heap space error. I am using eclipse IDE. I have tried to run the app with -Xmx500000000 but it is still showing the same error. Would you please recommend a valid heapsize for this? or Am I missing anything? |
||
Title: Re: Sample Java Bot Post by asfaklive on Jan 30th, 2010, 8:39pm The exception I am always getting Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at arimaa3.ArimaaMove.<init>(ArimaaMove.java:8) at arimaa3.HashTable.<init>(HashTable.java:30) at arimaa3.ArimaaEngine.<init>(ArimaaEngine.java:433) at arimaa3.ArimaaEngine.main(ArimaaEngine.java:1314) May I get any suggestions? Regards. |
||
Title: Re: Sample Java Bot Post by omar on Feb 1st, 2010, 7:45am Jeff can probably give you more details later, but I think you can reduce the heap size until you find something that works. Try something like: java -Xmx30000000 -classpath test.jar arimaa_bb.ArimaaMain to give 30 MB for the heap. |
||
Title: Re: Sample Java Bot Post by asfaklive on Feb 2nd, 2010, 11:51pm No, that does not work, too. By the way, now I am trying to understand the sample perl bot. Regards. |
||
Title: Re: Sample Java Bot Post by jdb on Feb 3rd, 2010, 6:47am on 01/27/10 at 21:11:09, asfaklive wrote:
500Mb should be plenty for the heap. Maybe eclipse is doing something. Have you tried running it from the command line? |
||
Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |