Please note that I already have a loop encompassing the entire program if the colours are detected in the correct order.
How about creating another loop for the failure case?
Start loop 1 (correct order)
Start loop 2 (wrong order)
Check for colours
If correct order
End loop 1 (correct order)
Do some other ...
Perhaps you need to add some hysteresis in your sensor loops. Each loop waits for a condition to be met, but then repeats infinity as long as that condition is met. Hysteresis means waiting for another condition to indicate that the sensor has returned to the original state and usually includes a deadband (meaning the positive trigger is not the same as the ...
With ev3dev pretty much any programming language you can run or compile for the ARM board can be used. All you really need to be able to do is read and write to a file. This is because ev3dev is based on Debian Linux and has drivers to communicate with the hardware through virtual files.
That being said, typically you will probably want to use a library ...