Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Bot Development >> Correct notation for this move
(Message started by: JimmSlimm on Apr 14th, 2011, 2:43pm)

Title: Correct notation for this move
Post by JimmSlimm on Apr 14th, 2011, 2:43pm
What is the correct notation for dying when I pull?

Ec4s mc5s Ec3x ?
Ec4s Ec3x mc5s ?

Title: Re: Correct notation for this move
Post by jdb on Apr 14th, 2011, 2:50pm

on 04/14/11 at 14:43:25, JimmSlimm wrote:
What is the correct notation for dying when I pull?

Ec4s mc5s Ec3x ?
Ec4s Ec3x mc5s ?


The second one is correct.

Title: Re: Correct notation for this move
Post by omar on Apr 14th, 2011, 11:32pm
Traps are checked after each step to see if any piece needs to be removed. Thus the notation to indicate the removal of the E comes right after it takes a step.

Title: Re: Correct notation for this move
Post by JimmSlimm on Apr 23rd, 2011, 6:14pm
I'm in trouble again, my bot made illegal move but I don't see why it was illegal:
http://arimaa.com/arimaa/games/jsShowGame.cgi?gid=181043&s=w <--- last move

the log from AEI sais:
2011-04-24 00:49:09 INFO:gameroom:Sending move Rb1e Eb3e Ec3w hd3w hc3x

what's wrong with it?

edit: nevermind I saw it now ^^ "Rb1e" is illegal
edit2: I was wrong, Rb1e SHOULD be legal, I'm confused, what was the illegal move?

Title: Re: Correct notation for this move
Post by Fritzlein on Apr 23rd, 2011, 6:50pm

on 04/23/11 at 18:14:17, JimmSlimm wrote:
2011-04-24 00:49:09 INFO:gameroom:Sending move Rb1e Eb3e Ec3w hd3w hc3x

what's wrong with it?

Looks legal to me.

Title: Re: Correct notation for this move
Post by JimmSlimm on Apr 23rd, 2011, 6:54pm
is there a way to see what move the gameroom server received?

I'm thinking maybe AEI sent the wrong move

Title: Re: Correct notation for this move
Post by Janzert on Apr 23rd, 2011, 11:33pm
You could turn the network logging in aei to debug to see exactly what is getting sent and received over the network. But in the case of the move logged and the move sent it is sending the exact string logged as the move to the server.

See around line 445 in gameroom.py for where the move is logged with:

Code:
log.info("Sending move %s", response.move)

then a few lines later uses the same untouched "response.move" to call the method "self.move". You can then go to around line 240 for the "move" method and see that it uses the string passed in to build a post request to the server with it as the move made.

Having said that I don't really know why the server might have rejected that move. Is it possible there is some extraneous whitespace at the end of the move? That's about the only thing I can think of offhand.

Janzert

Title: Re: Correct notation for this move
Post by JimmSlimm on Apr 24th, 2011, 10:13am
Thanks

I guess I was just lagging, I saw that almost all of my bandwitch was used at the time

Title: Re: Correct notation for this move
Post by rbarreira on Apr 24th, 2011, 3:36pm
According to the game log, that was not the move received by the server:


Quote:
1303598953 [Sat Apr 23 22:49:13 2011] move 10b received from b [hc4e hd4s ra7s ra6e]
1303598953 [Sat Apr 23 22:49:13 2011] after 10b, move used:83 wresv:120 bresv:13 game:289
1303598985 [Sat Apr 23 22:49:45 2011] w player has left
1303598993 [Sat Apr 23 22:49:53 2011] w player joining
1303598993 [Sat Apr 23 22:49:53 2011] w player present
1303598994 [Sat Apr 23 22:49:54 2011] w player present
1303599002 [Sat Apr 23 22:50:02 2011] move 11w received from w [rb6s hb4e Rh6s eg6e]
1303599002 [Sat Apr 23 22:50:02 2011] gameserver rejected move [rb6s hb4e Rh6s eg6e]; bad step rb6s hb4e Rh6s eg6e

1303599002 [Sat Apr 23 22:50:02 2011] result=bi side=w


It seems that your bot left and rejoined the game and then sent a move for the silver side.



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