Train your mBot
Before you can start, you have to train your mBot. It has to be submerged in the martial art of sumo.
First, you have to make sure to eat well.
Then you have to think about the movements you have to make.
- If you have a white surface, you’ll move slowly (use the line-following sensor)
- If you have a white surface and you see the opponent, you’ll move fast (use the line-following sensor and the ultrasonic sensor)
These are the blocks you can use for this.

Try to fit them together.
Your mBot now moves slowly along the white field. If it sees the other mBot, it moves faster and pushes it out of the ring.
You won’t lose if you choose to roll out of the field, but the mBot has to find its way back.
Use these blocks for this.

With these blocks, your mBot will drive backwards and then to the right. If you have a white surface, it will go back to the other part of your program. If you don’t have a white surface, it'll run through the blocks again.
The last thing we need to do is to make the program start after you’ve clicked the built-in button.