Azymoove Help

Time and luck

The turn's time limit and why the same battle repeats exactly.

The same battle, always the same

The same robot with the same seed always fights the same way. Math.random, rand and random are drawn from the battle’s seed, and the clock stands still. That’s why the replay shows exactly what happened, and the scenery and its events repeat too.

Time limit

A turn that takes more than 1 second until the next scan() disqualifies the robot: an endless loop with no scan(), for example. Inside the loop, use continue (Ruby: next) to end the turn; return ends run(), and the robot stands still.

Code errors

An error in the code takes the robot out of the battle. The battle log shows the message and the line. Test in the editor before saving.