# Option stand-and-display-robot-number The initial behavior of the robots. Stand and display the robots number with all the face leds. ## State Machine ## State display-one
If that state is active,
> | The basic behavior stand is executed.
> | These output symbols are set:
| leds.face8 | = | face8.oooo
| leds.face10 | = | face10.oooo
| leds.face11 | = | face11.llll
| leds.face9 | = | face9.oooo
| leds.face7 | = | face7.oooo
The decision tree:
Pseudo code of the decision tree:
if ( | robot-number == 1 | ) | // robot number is one
{
transition-to-state(display-one);
}
else if ( | robot-number == 2 | ) | // robot number is two
{
transition-to-state(display-two);
}
else if ( | robot-number == 3 | ) | // robot number is three
{
transition-to-state(display-three);
}
else if ( | robot-number == 4 | ) | // robot number is four
{
transition-to-state(display-four);
}
else
{
transition-to-state(display-one);
}

## State display-two

If that state is active,
> | The basic behavior stand is executed.
> | These output symbols are set:
| leds.face8 | = | face8.llll
| leds.face10 | = | face10.oooo
| leds.face11 | = | face11.oooo
| leds.face9 | = | face9.oooo
| leds.face7 | = | face7.llll
The decision tree:
Pseudo code of the decision tree:
if ( | robot-number == 1 | ) | // robot number is one
{
transition-to-state(display-one);
}
else if ( | robot-number == 2 | ) | // robot number is two
{
transition-to-state(display-two);
}
else if ( | robot-number == 3 | ) | // robot number is three
{
transition-to-state(display-three);
}
else if ( | robot-number == 4 | ) | // robot number is four
{
transition-to-state(display-four);
}
else
{
transition-to-state(display-two);
}

## State display-three

If that state is active,
> | The basic behavior stand is executed.
> | These output symbols are set:
| leds.face8 | = | face8.llll
| leds.face10 | = | face10.oooo
| leds.face11 | = | face11.llll
| leds.face9 | = | face9.oooo
| leds.face7 | = | face7.llll
The decision tree:
Pseudo code of the decision tree:
if ( | robot-number == 1 | ) | // robot number is one
{
transition-to-state(display-one);
}
else if ( | robot-number == 2 | ) | // robot number is two
{
transition-to-state(display-two);
}
else if ( | robot-number == 3 | ) | // robot number is three
{
transition-to-state(display-three);
}
else if ( | robot-number == 4 | ) | // robot number is four
{
transition-to-state(display-four);
}
else
{
transition-to-state(display-three);
}

## State display-four

If that state is active,
> | The basic behavior stand is executed.
> | These output symbols are set:
| leds.face8 | = | face8.llll
| leds.face10 | = | face10.llll
| leds.face11 | = | face11.oooo
| leds.face9 | = | face9.llll
| leds.face7 | = | face7.llll
The decision tree:
Pseudo code of the decision tree:
if ( | robot-number == 1 | ) | // robot number is one
{
transition-to-state(display-one);
}
else if ( | robot-number == 2 | ) | // robot number is two
{
transition-to-state(display-two);
}
else if ( | robot-number == 3 | ) | // robot number is three
{
transition-to-state(display-three);
}
else if ( | robot-number == 4 | ) | // robot number is four
{
transition-to-state(display-four);
}
else
{
transition-to-state(display-four);
}