Author |
Topic: How to use AEI and Arimaa Client (GUI) ? (Read 8575 times) |
|
Ikki
Forum Full Member
Arimaa player #8506
Gender:
Posts: 16
|
|
How to use AEI and Arimaa Client (GUI) ?
« on: Mar 20th, 2013, 12:59pm » |
Quote Modify
|
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.
|
|
IP Logged |
|
|
|
Nombril
Forum Guru
Arimaa player #4509
Gender:
Posts: 292
|
|
Re: How to use AEI and Arimaa Client (GUI) ?
« Reply #1 on: Mar 20th, 2013, 9:17pm » |
Quote Modify
|
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.
|
|
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: How to use AEI and Arimaa Client (GUI) ?
« Reply #2 on: Mar 21st, 2013, 4:09am » |
Quote Modify
|
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.
|
« Last Edit: Mar 21st, 2013, 4:14am by Hippo » |
IP Logged |
|
|
|
Ikki
Forum Full Member
Arimaa player #8506
Gender:
Posts: 16
|
|
Re: How to use AEI and Arimaa Client (GUI) ?
« Reply #4 on: Mar 24th, 2013, 3:49pm » |
Quote Modify
|
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"
|
« Last Edit: Mar 24th, 2013, 7:55pm by Ikki » |
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: How to use AEI and Arimaa Client (GUI) ?
« Reply #5 on: Apr 5th, 2013, 3:04pm » |
Quote Modify
|
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.
|
« Last Edit: Apr 6th, 2013, 4:14am by Hippo » |
IP Logged |
|
|
|
browni3141
Forum Guru
Arimaa player #7014
Gender:
Posts: 385
|
|
Re: How to use AEI and Arimaa Client (GUI) ?
« Reply #6 on: Apr 5th, 2013, 6:23pm » |
Quote Modify
|
on Apr 5th, 2013, 3:04pm, 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.
|
|
IP Logged |
|
|
|
|