## On the Subject of LED Grid

Maybe they were Christmas lights in a previous life?

- The module consists of nine LEDs and four buttons.
- To disarm the module, press the four buttons in the correct order in accordance with the table below.
- Colours include red, blue, yellow, green, orange, pink, purple & white.
- Pairs refer to exactly two of a colour but do not have to be adjacent.
- Unlit LEDs should still be considered in the rules.
- For example, instances of two unlit LEDs would still be considered “a pair”.

For 0 unlit LEDs:If there are no orange LEDs, Otherwise, if there are three or more red LEDs, Otherwise, if there are two or more pairs, Otherwise, if the bottom row is all the same colour, Otherwise, |

For 1 unlit LED:If every LED is unique, Otherwise, if the top row is all the same colour, Otherwise, if there are exactly three red, three pink or three purple LEDs, Otherwise, if there is exactly one white, two blue or three yellow LEDs, Otherwise, |

For 2 unlit LEDs:If there are three or more purple LEDs, Otherwise, if there are exactly two pairs, Otherwise, if there is at least one white, one orange and one pink LED, Otherwise, if there is exactly one green, two yellow, three red or four blue LEDs, Otherwise, |

For 3 unlit LEDs:If there are exactly two orange LEDs, Otherwise, if there is more than one pair, Otherwise, if there are no purple LEDs, Otherwise, there is at least one red and one yellow LED, Otherwise, |

For 4 unlit LEDs:If the centre row is all the same colour, Otherwise, if there are two or more green LEDs, Otherwise, if there are exactly two pairs, Otherwise, if there are no pink LEDs, Otherwise, |