Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Bot Development >> Connecting to arimaa.com
(Message started by: Muzz on Mar 24th, 2012, 3:34pm)

Title: Connecting to arimaa.com
Post by Muzz on Mar 24th, 2012, 3:34pm
Please forgive this horribly basic question, but at what point does the engine connect to the gameroom and start a game? I can play a game in text format only. Also, can I test my bots without internet connection?

Again, sorry for my lack of abilities.

Title: Re: Connecting to arimaa.com
Post by tize on Mar 25th, 2012, 2:44am
All bot engines uses an interface for the communication to the gameroom, so no network code needs to be done by the developer.

If you use the old bot interface, as I do, then make a getMove program which is a program that gets three files and then just prints the move to make. The bot interface will then pass that move to the gameroom.

Use ./botman start& to get it to enter the gameroom and continuosly play games.

If you on the other had use AEI then I don't know...

Title: Re: Connecting to arimaa.com
Post by rbarreira on Mar 25th, 2012, 4:51am
With the new (AEI) interface you also don't need to do any of the networking stuff yourself. You make a program that gets started at the beginning of the game and receives/sends all commands through standard input/output. Commands such as "makemove" (to receive a move by either player), "go" (to ask the bot for its move), etc.

You can read about it here:

http://arimaa.janzert.com/aei/aei-protocol.html

Title: Re: Connecting to arimaa.com
Post by Muzz on Mar 26th, 2012, 3:47am
I didn't explain that too well, but I'll try again.

I'm using AEI. I'll just talk in terms relating to the engine included in the package.

I start a game against the engine (by typing 'aei', 'isready', etc.) What I want to know is, is this game now being played on the server? If so, can I view the actual game, rather than the text-based format, or do I need to write my own scripts to do that?

Thanks for your time.

Title: Re: Connecting to arimaa.com
Post by JimmSlimm on Mar 26th, 2012, 6:43am

on 03/26/12 at 03:47:19, Muzz wrote:
I didn't explain that too well, but I'll try again.

I'm using AEI. I'll just talk in terms relating to the engine included in the package.

I start a game against the engine (by typing 'aei', 'isready', etc.) What I want to know is, is this game now being played on the server? If so, can I view the actual game, rather than the text-based format, or do I need to write my own scripts to do that?

Thanks for your time.


If using gameroom.py, then yes it's being played in the gameroom of arimaa.com.

You can spectate the game with your own(human) account, find it in the gameroom by logging in and check out "live games"

Title: Re: Connecting to arimaa.com
Post by rbarreira on Mar 26th, 2012, 10:29am

on 03/26/12 at 03:47:19, Muzz wrote:
I didn't explain that too well, but I'll try again.

I'm using AEI. I'll just talk in terms relating to the engine included in the package.

I start a game against the engine (by typing 'aei', 'isready', etc.) What I want to know is, is this game now being played on the server? If so, can I view the actual game, rather than the text-based format, or do I need to write my own scripts to do that?

Thanks for your time.


If you run the engine on your own and type commands into it then the game is certainly not being played online.

As JimmSlimm said, if you want the bot to play online you have to use the gameroom.py script, which runs your bot and connects to the server, serving as an intermediary between  the bot and the server.



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