On the Subject of Deceptive Rainbow Arrows

What do you mean, “Point at Inverted Stores' Calculations!?” It points to the void and two useless bits!

This module has eight arrow buttons in a randomized rainbow color arrangement, and a display screen in the center showing a flashing number in base-8 from 00 to 77. The eight possible colors the module can show are red, orange, yellow, green, blue, purple/violet, white, and black. When not submitting, there are 6 sets of flashing arrows followed by the text flashing a different color, denoting the end of the arrow flashing sequence.

If there is not a black arrow present, you may be looking at Rainbow Arrows.

To solve the module, the defuser will need to query a series of 2 colors and read out the response shown from the module. The response shown will be in base-8 or octal as "R:##" on the module. Go through the procedure for each response to get the next sequence of colors to query. Once the defuser has queried for the third response, determine the value to submit based on the response of that query.

To query on the module, press the two arrow colors and then the display to query for the response. To submit on the module, press the display while no arrows are pressed, press the two arrow colors in order, and then the display again to submit. If the defuser wants to exit out of submission, press the display while no arrows have been inputted. Do not query or submit with 1 color pressed, or interact while the module is processing the query. This will cause a strike and display an error message on the module for a few seconds before reverting back to its initial state.

Contents on This Manual:

The First Query

To obtain the first query, create 3 pairs of values from the serial number; by taking the 1st and 2nd, 3rd and 4th, 5th and 6th, all as separate pairs; converting letters into their A1Z26 counterpart. Take the sum of each pair and modulo them all by 8 to obtain 3 separate values. These three values are referred as Z, Y, and X respectively.

Find the row representing Z in the table provided to get a series of colors that represent the octal values 0–7 in that order. This row will be used for later queries.

If there is an even amount of batteries, the color representing Y will be the first color in the pair to query and the color representing X will be the second color in the pair to query.

Otherwise, the color representing X will be the first color in the pair to query and the color representing Y will be the second color in the pair to query.

For each cell in the table, each letter is represented by their first letter in the color name, except black which is represented with "K" to avoid confusion with blue.

Z Octal Digit Represented By Color
01234567
0RKYWOGPB
1YOBGRKWP
2BYKRWPGO
3GRPOKWBY
4PBGKYROW
5KWOBPYRG
6WGRPBOYK
7OPWYGBKR

The Second Query

Convert the flashing arrow sequence into a string of 6 binary digits, with the first binary digit represented by the first set of flashing arrows after the text has flashed. White and black will NEVER flash in the arrow sequence, and should NOT be considered for deciding if the flashing set is inverted or not. If all but 1 colored arrow is flashing, that binary digit is represented as a 1. Otherwise, it is represented as a 0.

Convert your response from the first query from octal to binary, using the table provided. Create this as another binary string.

OctBinOctBinOctBinOctBinOctBinOctBinOctBinOctBin
00001001201030114100510161107111

XOR the two binary strings obtained earlier to get a new binary sequence. Take the second, fourth, and sixth binary digits from that sequence to get 1 binary triplet and create the second with the remainder. Convert these two binary triplets into their octal digits, join the octal digits into one octal value, and then cross reference this table to get a new octal value. Query the new octal value with the color arrangement determined for the first query.

_0_1_2_3_4_5_6_7
0_3602707457322422
1_4030061764345147
2_6353455410616041
3_6707004204564665
4_1662772631126625
5_5552111427053576
6_1550372344334373
7_7572032120137101

The Third Query

Use the response that was obtained from the second query and start on the coordinate in reading order based on the grid provided, where 00 is the top-left of the grid. On the grid, start facing in the same direction as the white arrow on the module. Go through this snippet of pseudocode:

  1. Let I = 0, P be an empty list, and M the number of arrows clockwise from the white arrow to the arrow matching the color of the text when the text flashes. (I.E. If the color sequence in CW order is W, G, B, R, K, Y, O, P and the color of the text flashed is blue, M would be 2.)
  2. While I < 4, repeat the following nested steps:
    1. Let E be a separate list. and A = 0 in this section.
    2. While A < I + 1, repeat the following nested steps:
      1. Append the value you are on to E.
      2. Move 1 step in the current direction, wrapping around to the other side of the grid if moving to out of bounds.
      3. Add 1 to A.
    3. Append the sum of all the values in E, modulo 8, on to P.
    4. Rotate 45° clockwise M times.
    5. Add 1 to I.
  3. Take P[0] and XOR it with P[1] to create A in octal, where P[0] is the first element in list P. Likewise, take P[2] and XOR it with P[3] to create B in octal.
  4. Find the cell corresponding to the 2 digit concatenation of A, B from the second query's table and query the respecting color combination from the first query's row.
01735426
13047652
34160275
46321507
62453710
25674031
57206143
70512364

Submitting The Response

To submit the response, use the initially displayed value, all responses from the queries you have up to this point, and the 6 sets of arrow flashes that have occurred. Examine the ports present, and create a list of the port type(s) that appear the most. If this list has at least 4 port types mentioned from this table, omit the 1st, 3rd, and 5th flashes. Otherwise, omit the flashes corresponding to the port types in your list in this table.

Port TypeParallelSerialPS/2RJ-45Stereo RCADVI-D
Position To Omit2nd6th3rd4th5th1st
Color
Flashed
Equation
Red R(x) = x + A0
Orange O(x) + A1 = x
Yellow Y(x) + (2n - 1) = A2 - x
Green G(x) + x = 2 * x + ∑A / 3
Blue x - 2 * B(x) - 2 * n = min(A) - B(x)
Purple 3 * P(x) - 2 * x = max(A) - x + 4 * P(x)

Go through the rest of the flashing sets and find it’s respective equation based on the color it flashed. Solve for x if the flash is inverted or F(x) otherwise by plugging on the opposing variable (solving for F(x), plug in x, and vice versa, after plugging in the other values), the last value that was used to calculate the set of flashes, or the displayed value if this is the first set. Keep the calculated value within 0 to 63 by adding or subtracting 64 repeatedly if the calculated value in base 10 after the current flash set is not. Omit decimals when dividing, I.E. make 24.5555 become 24, NOT 25. On the table provided:

  • A is the list of responses obtained up to this point.
  • An refers to the response that was queried (n + 1)th.
  • n is the position of the current remaining flashing set when the equation is used, with the first set being 0.
  • min(A) refers to the minimum value from list A.
  • max(A) refers to the maximum value from list A.
  • ∑A refers to the sum of all of the values from list A.

Use the octal representation of the result of the last calculated flashing set to reference the second query's table to get a new value. Use the color representation of the new value to submit the response.