
August 11th, 2002, 11:09 PM
|
|
|
|
Join Date: Apr 2007
Location: serbia
Posts: 1,876
Time spent in forums: < 1 sec
Reputation Power: 3
|
|
|
RE: Judging script and test framework with Flash visualization
i tested it, and found 3-4 small things wrong/missing from the script.
first, to be fair, just to say that it has great graphics, and that it is very nicely done. and to mention that my script also has an error ;) (see other thread)
and now:
1) u should put eval($ra['code']); in a separate function, since eval()-ed code shares a variable scope from the script it is called from, and thus, any changes in that variable scope may result in unwanted side effects. (i found this the hard way ;) )
2) there is an error when a robot has used a death ray already, and he stands near a wall and fires it again into the wall. it gets killed. i don’t think that this is by the rules.
3) there are a lott of warnings and notices when i run it with error_reporting(E_ALL) and register_globals set to off (this is how i run all the scripts).
4) visualiser doesn’t show a move my script made, and a result it got in return. i know all that is nicely drawn, but… ie, when my robot stands near a wall, and tries to move into it, or stays put (RR), or tries to put a trap, and he has none left, i cant tell a difference what my robot did!
|