The Switch Block
- wpssuperscience
- Jun 8, 2016
- 1 min read

In our last session we investigated using the switch block in conjunction with the loop block. This enabled our robots to be able to follow different actions depending on the colour it sensed throughout the maze. For example we programmed particular actions for blue, green and red tape. Actions could include: when sensing green "turn right", when sensing red "turn left" and when sensing blue "stop". By using these blocks we are able to program our robots to move continuously without needing to repeat the actions manually.
Comments