On the Subject of The Colored Peg

🫸🫓🍅🌶️🥒🍗🥬🫷             🫴        ≡ 🌯          kebab

The module consists of two buttons, "YES" and "NO", a peg with 5 colored faces, 3 colored LEDs, and 3 stage indicators. The colors on the module can be: red, green, blue, white, black, yellow, cyan and magenta. Pass 3 stages in order to solve the module. When you press the button at the wrong time or press the wrong button, the module will handle a strike. The first face of the peg has a small circle on it. Note: White is RGB, Yellow is RG, Cyan is GB, Magenta is RB, Black is nothing. Keep track of all of the colors from every stage. Any subsequent stage requires information about the colors of all the previous ones.

Stage 1

On the first stage, press "YES", if more than 4 conditions apply.

  • The peg has exactly 3 distinct colors (Example: MMGGR).
  • Every color of LEDs is present on the peg.
  • The amount of faces that have the red component in them is more than 2.
  • The bomb has lit FRQ.
  • All colors on the peg are different.
  • There are exactly 2 instances of the blue color on the peg + on the LEDs.
  • The bomb has a module “Colour Flash”.
  • The bomb has less than 4 batteries.
  • The bomb has DVI port.
  • The last digit of the serial number is even.
  • The peg has black- and white-colored faces.

On the first stage, you can press the button at any time.

Stage 2

Count red, green and blue components on LEDs and on the peg in both stages (Example: if LEDs are RMG, amounts will be: R2 G1 B1). Let's name these numbers as X, Y, Z (in the respective order). The top-left coordinate in the table is (0, 0). Table wraps around. X is the row, Y is the column, and Z is the multiplier. Find the intersection of the row and the column. Apply the multiplier. Call this number N. Find the Nth cell in zero-indexed reading order. This is your resulting number. If this number is greater than 6, press "YES", otherwise press "NO".

Press the button when last digit of the timer is equal to the number of red components on both stages, modulo 9.

514297836
342919775
271756317
868831169
729543451
437384522
686475293
193628684
955162945

Stage 3

Convert all colors into digits and logical operations using table below. Find two values:
Value 1: (A [1] (B [2] С)) [4] C
Value 2: B [3] (C [4] (A [5] C))
where [n] is the operation of the nth color on the peg in the order appearing on the module. A, B, C are values of the LEDs.

Color Operation Value
Red OR 10110
Green AND 11111
Blue XOR 00010
Magenta IMPLICATION 10001
Yellow NAND 10111
Cyan NOR 11010
White XNOR 11100
Black AND 01101

If the second value is greater than the first, press "NO", otherwise press "YES". Press the button when the smallest of the two values modulo 10 is the last digit of the bomb's timer.

Red Blue Green Magenta Yellow Cyan White