hquxmu / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Allow the bots to produce debug output for a while #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
While the contest backend is still not completely stable, it might be a great 
idea to allow bots to write to stderr, and send the output to the owner via 
email afterwards.

For example, <a 
href="http://ai-contest.com/visualizer.php?game_id=4428792">here</a> I mention 
that the bot has mysteriously stopped giving orders once the enemy fired off a 
zero-sized fleet. I believe this is not an error on my side, as I have run over 
3000 checks at my site, where the behavior was always appropriate. Moreover, 
the same submission worked fine in other matches when there were zero-sized 
fleets, which leads me to wonder if there is a still-not-found bug in the 
contest engine.

If my bot has crashed or had some weird logic error, though, it would output 
the stack trace (or description of the problem in the latter case), and I would 
be able to make sure the engine is alright, and the problem is all mine.

Original issue reported on code.google.com by gvsmirno...@gmail.com on 11 Sep 2010 at 10:51

GoogleCodeExporter commented 9 years ago
We briefly mentioned this in the IRC channel yesterday. If we do this, it needs 
to have a strict, low character limit. We don't want people putting out tons of 
information, flooding the server, abusing it, etc. I was thinking around 1000 
characters maximum, after which the tournament manager stops logging stderr.

Original comment by Jake.McA...@gmail.com on 11 Sep 2010 at 1:34