Color Sensor
The Color Sensor has two main functionalities:
- Detect a color (red, green, blue, white, black, etc.)
- Measure Light Instensity (usually reflective light from a surface, but also passive ambient light)
For Sumo Challenge, we can concentrate only on the color detection function.
Is Color Block
You can use the following block in an If/Else or Wait Until style blocks - anything that requires a boolean True/False:
If you look back at the general Sumo algorithm (see Overview) you should be able to get a sense of how this can be used.