Making a Simple Algorithm: The Line | myBetabox

Making a Simple Algorithm: The Line

We will use the menu on the left side of the screen to help create algorithms.

Your first program will be to program your car to drive in a line. Follow the steps below to complete it!

  1. Click on Picar-X.
  2. Drag the Forward block to the blank work space.
  3. Drag the Sleep block and connect it to the Forward block.
    This block tells your car how long to drive forward, so change the  to the number of seconds you would like your car to drive forward.
  4. Drag the Stop block and connect it to the other block. As you would guess, this tells your car to stop!
  5. Before running your program, make sure your car is on the floor!
  6. Click Run Code.