3.The value of the sensor will be saved as a variable.
[Part1] If...then...
When the condition is matched, the block will do what you set in the (then) block.
[Part2] If...else...
As following, when the condition isn't matched, the block will do what you set in the (else) block.
Part1
Part2
[Part3] variable
To save the value that sensor got as the variable (light).
[Part4] Guessing game
Try to guess what computer will choose.
In this part, you can choose 1 or 2 on mBlock window.
If the number you choose is the same as the number computer choose, mbot will ring a short part of Do-Re-Mi. If not, mbot will ring twice for your failure.