On the Subject of Conditional Buttons

Colored buttons, how hard can this be?

On the module, there are six buttons, each buttons has a different color. To defuse the module, apply the folowing procedure:

The procedure:

  1. Determine which buttons to press.
  2. Determine the order of buttons to press.

Important Notes:

  1. After the first button is pressed, all buttons will turn blank.
  2. In the rare case, where no condition is satisfied, proceed to step 2 and press the first 3 available buttons.

Step 1:

There 10 known colors: Black, Blue, Dark green, Light green, Orange, Pink, Purple, Red, White and Yellow.
Each color has a specific condition that must be satisfied. If the condition is satisfied, press the button. And if it isn't, don't press it.

The Conditions:

  • Black - If there are more batteries than battery holders.
  • Blue - If there are 2 or more batteries.
  • Dark green - If there is an odd number of modules or at least one needy module.
  • Light green - If there is a DVI port, and the serial number contains one of more of the following digits: 3, 4, 5, 6 ,7 ,8.
  • Orange - If there is atleast 1 PS/2 port.
  • Pink - If there is an indicator with the label "BOB" and there is an odd number of batteries.
  • Purple - If the module "The Button" is present or the serial number contains one or more of the following letters: X, Y, Z.
  • Red - If there is a lit indicator with label "NSA".
  • White - Always.
  • Yellow - If the serial number contains one or more of the following letters: H, K, L.

Step 2:

Table below describes order in which the buttons should be pressed. Select the correct row with the last digit of the serial number, and follow from left to right:

Last digit of serial number Order to follow
0 Black, Blue, Dark green, Light green, Orange, Pink, Purple, Red, White, Yellow
1 White, Red, Light green, Purple, Black, Dark green, Orange, Blue, Pink, Yellow
2 Orange, Yellow, Red, Blue, Purple, Light green, Dark green, White, Black, Pink
3 Orange, Purple, Light green, Dark green, White, Blue, Red, Pink, Yellow, Black
4 Blue, Light green, Purple, Orange, Red, White, Yellow, Pink, Black, Dark green
5 Pink, Yellow, Dark green, Blue, Light green, Black, Orange, Purple, White, Red
6 Red, Blue, Yellow, Dark green, Pink, Black, Purple, Orange, Light green, White
7 White, Dark green, Purple, Red, Pink, Light green, Black, Orange, Blue, Yellow
8 White, Blue, Dark green, Black, Yellow, Pink, Red, Light green, Purple, Orange
9 Pink, Black, Light green, Blue, Purple, Dark green, White, Yellow, Red, Orange