Motion#

Introduction#

The blue Motion cards drive and turn the 123 Robot.

Below is a list of available cards:

drive 1#

The drive 1 card makes the 123 Robot drive forward 1 step. One step is one square on a 123 Field.

A blue Coder Card that reads drive 1.

Example

Drive forward 1 step, turn right, then drive forward 1 more step.

A red Coder Card that reads when start 123.

A blue Coder Card that reads drive 1.

A blue Coder Card that reads turn right.

A blue Coder Card that reads drive 1.

drive 2#

The drive 2 card makes the 123 Robot drive forward 2 steps. One step is one square on a 123 Field.

A blue Coder Card that reads drive 2.

Example

Drive forward 2 steps, then honk.

A red Coder Card that reads when start 123.

A blue Coder Card that reads drive 2.

A pink Coder Card that reads play honk.

drive 4#

The drive 4 card makes the 123 Robot drive forward 4 steps. One step is one square on a 123 Field.

A blue Coder Card that reads drive 4.

Example

Glow green, then drive forward 4 steps.

A red Coder Card that reads when start 123.

A purple Coder Card that reads glow green.

A blue Coder Card that reads drive 4.

turn left#

The turn left card makes the 123 Robot turn in place 90 degrees to the left.

A blue Coder Card that reads turn left.

Example

Turn left, then drive forward 1 step.

A red Coder Card that reads when start 123.

A blue Coder Card that reads turn left.

A blue Coder Card that reads drive 1.

turn right#

The turn right card makes the 123 Robot turn in place 90 degrees to the right.

A blue Coder Card that reads turn right.

Example

Turn right 4 times to spin all the way around.

A red Coder Card that reads when start 123.

A blue Coder Card that reads turn right.

A blue Coder Card that reads turn right.

A blue Coder Card that reads turn right.

A blue Coder Card that reads turn right.

turn random#

The turn random card makes the 123 Robot turn right or left a random number of degrees.

A blue Coder Card that reads turn random.

Example

Turn a random amount, then drive forward 2 steps.

A red Coder Card that reads when start 123.

A blue Coder Card that reads turn random.

A blue Coder Card that reads drive 2.

turn around#

The turn around card makes the 123 Robot turn in place 180 degrees to the right from its starting position.

A blue Coder Card that reads turn around.

Example

Drive forward 1 step, turn around, and drive back to where the robot started.

A red Coder Card that reads when start 123.

A blue Coder Card that reads drive 1.

A blue Coder Card that reads turn around.

A blue Coder Card that reads drive 1.

drive until object#

The drive until object card makes the 123 Robot drive forward until the Eye Sensor detects an object. An object needs to be approximately 18 mm from the Eye Sensor to be detected.

A blue Coder Card that reads drive until object.

Example

Drive up to an object, then honk.

A red Coder Card that reads when start 123.

A blue Coder Card that reads drive until object.

A pink Coder Card that reads play honk.

drive until crash#

The drive until crash card makes the 123 Robot drive forward until it detects a crash.

A blue Coder Card that reads drive until crash.

Example

Drive until the robot crashes into a wall, then act sad.

A red Coder Card that reads when start 123.

A blue Coder Card that reads drive until crash.

A green Coder Card that reads act sad.

drive until line#

The drive until line card makes the 123 Robot drive until it detects a line on the surface it’s driving on.

A blue Coder Card that reads drive until line.

Example

Drive until the robot reaches a line, then turn around.

A red Coder Card that reads when start 123.

A blue Coder Card that reads drive until line.

A blue Coder Card that reads turn around.