Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Bot Development >> How to use AEI and Arimaa Client (GUI) ?
(Message started by: Ikki on Mar 20th, 2013, 12:59pm)

Title: How to use AEI and Arimaa Client (GUI) ?
Post by Ikki on Mar 20th, 2013, 12:59pm
Hello all

In my quest for programming an Arimaa bot, I've been trying to make a few bots play on my local computer.

For this purpose, I've downloaded a few bots, the AEI and the Arimaa GUI:

https://launchpad.net/arimaa-client
http://arimaa.janzert.com/aei/aei-1.1.zip

I've also downloaded the requisite software (python - I am using Ubuntu).

Unfortunatly, after quite a lot of time, I've not been able to make the gui work with some bot. In fact, I've not been able to play any game.

The fact is that the documentation seems very light.

For exemple, I've a bunch of python script, but I could not figure which one to launch and in which order. So all got is error messages.

Could someone help me and maybe give me a quick "how to" gude ?

Thanks for your help.

Regards.

Title: Re: How to use AEI and Arimaa Client (GUI) ?
Post by Nombril on Mar 20th, 2013, 9:17pm
Hi,

Some classmates and I developed a bot for a school project, we didn't get much past the opening set up  ::)

But we did get bots to play games locally and also connect to the gameroom.

There is a lot of information in the forum, towards the end of this thread is where I got some help:  http://arimaa.com/arimaa/forum/cgi/YaBB.cgi?board=devTalk;action=display;num=1249585723

Hippo also posted a more recent set of files for us, so we could see all of the configurations.  If my memory serves me, the roundrobin.py is set up for bot_hippo and also bot_random.  He included directory structure information, so it would run as is.  (Oh, but it is for Windows...)  The link is towards the end of: http://arimaa.com/arimaa/forum/cgi/YaBB.cgi?board=devTalk;action=display;num=1332772240

Also, if you post error messages, people may provide some advice.

I recall it took a little bit of patience, and some reading on the forums, but after getting it figured out we found that is pretty easy once you know what you are doing.

Title: Re: How to use AEI and Arimaa Client (GUI) ?
Post by Hippo on Mar 21st, 2013, 4:09am
Now I play two versions of my bot locally (using roundrobin.py), what works, but when trying to watch them (so using rabbit's proxy bot for one of them), I have problems with receiving inpropper information.
May be it's better not to watch them, but anyways I am planning to make sure (debugging the proxy code) that what the proxy bot receives it sends to working bot (the problem was at least with time controll ... the bot was forced not to think at all).

And from bot_Hippo borning ... from say Hello:
The archive with sample configuration + instalation files (for windows) was renamed to bot_Hippo120330inst.zip, other archives are smaller.

Title: Re: How to use AEI and Arimaa Client (GUI) ?
Post by Fritzlein on Mar 21st, 2013, 8:23am
Hippo is referring to this thread:

http://arimaa.com/arimaa/forum/cgi/YaBB.cgi?board=sayHello;action=display;num=1303292441

Title: Re: How to use AEI and Arimaa Client (GUI) ?
Post by Ikki on Mar 24th, 2013, 3:49pm
Hi, thanks for you help.

I've worked hard but could not make things work well. I've tried with hippo bot: i download the archive, unizip, etc. (i did it on Windows8 ) but when i tried to launch the "roundrobin.py" file, using the command: "python roundrobin.py", I got an error message:

"File roundrobin.py, line 201
elif resp[side].type == "chat":

TabError: inconsistent use of the tabs and space identation"

What is the problem ?

By the way, is the "hippo bot" (provided by Hippo) a stand alone program ? It seems that it contains everything needed to play on a local computer.

I try it on Ubuntu linux. I had another error message. It says that bot OpFor is missing (???). What does it means ?

EDIT: i've installed python 2.7 with wxpython for python 2.7, I've got another error under W8 when double clicking on the "roundrobin.pyc"

"could not find or load main class arimaa3.ArimaaEngineInterface"

Title: Re: How to use AEI and Arimaa Client (GUI) ?
Post by Hippo on Apr 5th, 2013, 3:04pm
Indentation is crucial in python.
Oh I have looked to the zip in hex view. There are usually spaces, but on this line there are tabs instead :(
And your number of spaces to expand tabs does not correspond to my:(.

Rewrite the tabs by spaces to align the row as the if on line 199.

Hmmm, it is in all crucial python files I have edited :( ...
And what is worse the tabs are not constant number of spaces, but thay somehow match the indentation above :(.
I hoped a simple replace would work, but the correction would be more complicated.

Done: In the py_spaces.zip in the directory are the versions with tabs replaced by spaces.
The bot_Hippo120330inst.zip was updated as well for those who would download it in future.

Opfor ... is in roundrobin.cfg to see how to configure other bots, but you of course cannot play against it unless you have installed it as well.

OOps not ... you are not using roundrobin.cfg from the *inst archive.

Title: Re: How to use AEI and Arimaa Client (GUI) ?
Post by browni3141 on Apr 5th, 2013, 6:23pm

on 04/05/13 at 15:04:22, Hippo wrote:
Indentation is crucial in python.
Oh I have looked to the zip in hex view. There are usually spaces, but on this line there are tabs instead :(
And your number of spaces to expand tabs does not correspond to my:(.

Rewrite the tabs by spaces to align the row as the if on line 199.

Hmmm, it is in all crucial python files I have edited :( ...
And what is worse the tabs are not constant number of spaces, but thay somehow match the indentation above :(.
I hoped a simple replace would work, but the correction would be more complicated.

Done: In the py_spaces.zip in the directory are the versions with tabs replaced by spaces.
The bot_Hippo120330inst.zip was be updated as well for those who would download it in future.

Opfor ... is in roundrobin.cfg to see how to configure other bots, but you of course cannot play against it unless you have installed it as well.

OOps not ... you are not using roundrobin.cfg from the *inst archive.

Hehe, this is why your not supposed to use tabs! (although I tend to anyway). I think some editors automatically replace tabs with spaces, or can be made to do so.



Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB 2000-2003. All Rights Reserved.