On the Subject of Rebooting Mystery 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 very affect on M-OS and turns it into advanced version. In advanced version, rebooting comes with specific properties that based on bomb's timer. As usual, rebooting takes 3 taps on the square. So all you need worry about, is a pressing time. To calculate pressing time, obtain 3 values and apply final operation to them.
Calculating Value A
For this you need square's colors and moves(square cycling through 4 moves). Using tabel below, obtain 16 cells and add up all values in that cells. Modulo 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.