The symptoms of infection should be obvious:
var actions = [ function () { up(Math.random() * 2 - 1) }, function () { left(Math.random() * 2 - 1) }, function () { turn(Math.random() * 2 - 1) }, ]; actions[Math.floor(Math.random() * actions.length)]();
The symptoms of infection should be obvious: