On the Subject of Rebooting M-OS
Make a big reboom!
This module use an unknown operation system. We're calling it "M-OS". At the start of each bomb, this OS will display a fatal error message. However, there is just a moving square instead of any text. The square will cycle through 4 of 7 possible colors: red, green, blue, yellow, cyan, magenta and white. To defuse it, simply reboot M-OS. Unfortunately, the bomb's time greatly affects M-OS and turns it into an advanced version, which is harder to reboot. As usual, rebooting takes 3 taps on the square. So all you need worry about is a pressing time. To calculate the pressing time, obtain 3 values and apply the final operation to them.
Calculating Value A
For this you need the square's colors and moves (it will be cycling through 4 moves). Using the table below, obtain 16 cells and add up all values in those cells. Modulo the received number by 1000. This is value A.
T - Square moves from bottom to top.
B - Square moves from top to bottom.
R - Square moves from left to right.
L - Square moves from right to left.
BL - Square moves from top-right corner to botton-left corner.
TR - Square moves from botom-left corner to top-right corner.
BR - Square moves from top-left corner to bottom-right corner.
TL - Square moves from bottom-right corner to top-left corner.