Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Site Discussion >> Game Archive Errors
(Message started by: lightvector on May 13th, 2011, 4:55pm)

Title: Game Archive Errors
Post by lightvector on May 13th, 2011, 4:55pm
I was preparing to do some analysis on the game archives, and caught some more errors.

Game 55 - 22g is illegal. Also, is game 55 supposed to be listed in between 16 and 17?
Game 32 - 15g is illegal
Game 77 - 19g is illegal
Game 20004 - Gold's last move (31w) is duplicated by silver
Game 20043 - Silver's last move (44b) is duplicated by gold
Game 20310 - 11w appears twice, the first instance contains move 10b
Game 20900 - Gold's last move (31w) is duplicated by silver
Game 21086 - Silver's last move (14b) is duplicated by gold
Game 21220 - Silver's last move (30b) is duplicated by gold
Game 21306 - Gold's last move (14w) is duplicated by silver
Game 21795 - Gold's last move (18w) is duplicated by silver
Game 22477 - Silver's last move (3b) is duplicated by gold
Game 23732 - Silver's last move (9b) is duplicated by gold
Game 24059 - Gold's last move (30w) is duplicated by silver
Game 24236 - Gold's last move (8w) is duplicated by silver
Game 25477 - Silver's last move (15b) is duplicated by gold
Game 25990 - 30b appears twice, the first instance contains move 30w
Game 27590 - 13b has two steps concatenated together, also 5b has an extra space (maybe the space from 13b somehow got inserted early at 5b?)
Game 120745 - Silver's last move (27b) is duplicated by gold
Game 122556 - Gold's last move (10w) is duplicated by silver
Game 133833 - Gold's last move (3w) is duplicated by silver
Game 161645 - Silver's last move (44b) is duplicated by gold

I'm guessing games 55, 32, and 77 are from when the server didn't properly check frozen pieces? I'm not sure what should be done about them, if they were the actual moves played in those games (despite being illegal).

All of the rest are clearly errors and should be fixed. The most recent instance is surprisingly recent, 161645 was in November 2010. Maybe the bug still exists? All of these duplication bugs apparently happen on timeout - perhaps some sort of rare race condition in the server code?


Title: Re: Game Archive Errors
Post by robinz on May 14th, 2011, 5:20am

on 05/13/11 at 16:55:01, lightvector wrote:
The most recent instance is surprisingly recent, 161645 was in November 2010.


Sorry, this isn't relevant to your question, but I'm surprised to hear this. My current postal games have numbers around 229000. I really can't believe that there have been almost as many games played between November 2010 and May 2011 as there were until November 2010 from when the site started (which I think was about 2002/3? someone here will know). So either you're wrong about when 161645 was played, or (more likely) I'm confused about something...

Title: Re: Game Archive Errors
Post by Janzert on May 14th, 2011, 7:39am
Ongoing games use a temporary game number that is quite a bit larger than the permanent number that gets assigned after the game finishes.

Janzert

Title: Re: Game Archive Errors
Post by omar on May 14th, 2011, 3:46pm
Thanks for spotting this lightvector. I'll add a "corrupted game" field to the database and mark these games as corrupted so that they can be skipped when analyzing the database. Fixing them manually would mess up the historical record that the game was originally messed up by the error on the server.

Title: Re: Game Archive Errors
Post by Janzert on May 14th, 2011, 9:32pm
People may also want to check out this really old thread (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi?board=siteIssues;action=display;num=1250260557) with issues I found when going through the database then.

Game 46 (http://arimaa.com/arimaa/gameroom/comments.cgi?gid=46) may be my favorite. ;)

Janzert

Title: Re: Game Archive Errors
Post by lightvector on May 14th, 2011, 10:42pm
Haha, game 46 is awesome!

My move parser now checks local move legality, which is how I found those errors. But not ending conditions, so it didn't detect that game. Cute.

Title: Re: Game Archive Errors
Post by mistre on May 14th, 2011, 11:37pm
I wonder what silver's reaction was when they realized that they won, but they didn't really win!   :o

Title: Re: Game Archive Errors
Post by omar on May 15th, 2011, 3:08pm
Thanks for the link Janzert. I've created a field called 'corrupt' which is set to 1 if the move list or the events log is bad. I've marked the games mentioned by lightvector and Janzert as corrupt.

Title: Re: Game Archive Errors
Post by rabbits on May 15th, 2011, 8:56pm
I just watched game 46 expecting to spot the funny illegal move, but then I got to the end and hadn't noticed anything strange... I thought I had missed the move where a frozen piece overcomes its fear and gets away from its bully...

I almost went back to the beginning of the game to watch it again, this time more carefully.  Instead I came back to this thread and realized what the problem was.  Then I watched the rest of the game and laughed quite hard!

Title: Re: Game Archive Errors
Post by lightvector on May 23rd, 2011, 9:25pm

on 05/14/11 at 15:46:49, omar wrote:
Thanks for spotting this lightvector. I'll add a "corrupted game" field to the database and mark these games as corrupted so that they can be skipped when analyzing the database. Fixing them manually would mess up the historical record that the game was originally messed up by the error on the server.


Just curious, has this field been added yet? It's not urgent, of course, but I noticed the game archive files seem to be the same as before.

Title: Re: Game Archive Errors
Post by Hippo on May 24th, 2011, 12:56pm
Interesting view to the arimaa history :)

Title: Re: Game Archive Errors
Post by omar on May 25th, 2011, 3:51pm

on 05/23/11 at 21:25:21, lightvector wrote:
Just curious, has this field been added yet? It's not urgent, of course, but I noticed the game archive files seem to be the same as before.


Yes, the field was added to the database, but was not being picked up by the program that makes the archive file. It should start getting picked up now. I've also created a file which has a list of the game ids marked as corrupt as of 201105.

http://arimaa.com/arimaa/download/gameData/corrupt201105.txt

Title: Re: Game Archive Errors
Post by Fritzlein on Feb 27th, 2012, 10:56pm
Oh, boy, I just tried to update my database, and the new "corrupt" field broke the import routine and (ironically) corrupted the database.   :'(



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