Robot Move 1: The Basic Bounce

A tutorial on basic robot movement using the Robot Move 2: The Shimmy for advanced users.


move1 = function() {
  var x = 0;
  var y = 0;
  while (true) {
    console.log("Bouncing!");
    x++;
    y++;
  }
}

Using the notation, you can represent the robot's movement as a simple loop, incrementing x and y variables until it reaches the edge of the room.

Need help with your robot's navigation system?

For a more complex movement, see Robot Move 2: The Shimmy for a more advanced tutorial.