Skip to content

Instantly share code, notes, and snippets.

@DzikuVx
Created May 7, 2013 19:48
Show Gist options
  • Save DzikuVx/5535556 to your computer and use it in GitHub Desktop.
Save DzikuVx/5535556 to your computer and use it in GitHub Desktop.
if (currentRange > stopRange) {
forward();
currentRoutine = 'd';
actionDelay = 50;
}else {
if (currentRoutine != 'e') {
engine_stop();
delay(400);
back();
delay(random(3,6) * 100);
engine_stop();
delay(300);
}
currentRoutine = 'e';
if (random(0,1) == 1) {
turn_left();
}else {
turn_right();
}
actionDelay = random(4,7) * 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment