On the Subject of Blue Levers

8 decisions, only one matters.
Wait, no, that's too short.

This module has 8 small levers on it.
If the first lever is not blue, you are looking at a different module.

To disarm the module, figure out which lever is safe, then flip it.

Step 1 : Safe Lever Candidates

Use the colour of the second and third lever to figure out the first candidate, fourth and fifth for the second, sixth and seventh for the third. They will be referred to as Candidate A, B, and C, respectively.

If a lever is chosen as a candidate more than once, shift one lever to the right on the module, wrapping around the edges if necessary, until you land on a lever that has not been nominated yet.

2nd, 4th, and 7th lever
3rd, 5th, and 6th Red Yellow Green Blue
Blue FirstSixthThirdLast
Green FourthSeventhSixthSecond
Yellow ThirdLastFirstFifth
Red SecondFifthFourthSeventh

Step 2 : The Elimination Round

Use each candidates' respective table to determine their scores.
All three levers will starts with 1 point.
If all there levers' score are unique, eliminate the one with the lowest score.
If there's a tie between two levers, eliminate the odd one out.
If all levers tie, take the last digit of the Serial number modulo 3, then, eliminate Candidate A if it's 0, B if it's 1, and C if it's 2.

Candidate A Candidate B Candidate C
Condition Score Condition Score Condition Score
It's Red +1 It's Green +2 It's not Blue +3
It's the second lever +3 It's the last lever +2 It's not the sixth lever +1
Last lever is Red +5 Last lever is Green +6 Last lever is Yellow +5
IND indicator -2 SIG indicator -3 FRK indicator -1
Serial port -2 DVI-D port -1 PS/2 port -3
>1 port plates + # of batteries > 1 indicators + # of port plates >1 batteries + # of indicators
Red Levers module on bomb divide by 2, round up Green Levers module on bomb divide by 2, round down Yellow Levers module on bomb divide by 2, round normally
Bomb generated on the 1st of the month +10 Bomb generated on the 15th of the month +11 Bomb generated on the 29th of the month +10
Candidate C is Blue +6 Candidate A is Yellow +5 Candidate B is Red +7
Forget Me Not on bomb - Sum of all digits in Serial # Needy on bomb - alphabetic position of 4th position of Serial # Vanilla modules on bomb - # of vanilla modules on bomb

Step 3 : The Safe Lever

Use the first table to determine which row should you look at in the second table.

Leftmost Remaining Candidate
Red Yellow Green Blue
Rightmost
Remaining
Candicate
Blue AFBC
Red EDHG
Green CBFA
Yellow HGDA

Use this table to determine which candidate is the safe lever. If the first candidate of the cell have already been eliminated in Step 2, the safe lever is the one in the bracket.

Last Lever's Colour
Row Red Yellow Green Blue
A A (B)B (C)C (A)B (A)
B C (B)B (A)A (C)C (A)
C B (A)C (A)B (A)A (C)
D B (C)A (B)C (A)C (B)
E C (B)B (C)A (C)A (B)
F C (A)B (A)B (C)C (A)
G A (B)C (B)C (A)B (C)
H A (C)C (A)B (A)A (B)