On the Subject of Turn Four

"Spin that bitch!" - William Shakespeare

This module consists of four nodes, two gears, and nine coloured tiles each labelled with an underlined number.

There is one tile of each colour:
Red, Orange, Yellow, Green, Cyan, Blue, Pink, browN, and grEy.

To disarm this module, the puzzle must be put into its solve state, shown in the image above.
To do this, enter a combination of inputs:

  • Any node can be selected at any time. The selected node is lit.
  • Selecting the left gear will rotate the four tiles adjacent to the selected node 90° clockwise around the node.
  • Selecting the right gear will rotate the four tiles adjacent to the selected node 90° anticlockwise around the node.

To construct the sequence of inputs:

  1. Use the digit of the G tile to construct a sequence of six colours.
  2. Use each colour in the sequence together with serial number digit that shares its position in the sequence to find six subsequences of three inputs each.
  3. Transform each subsequence with the modifiers corresponding to each of the previous colours in the sequence from right to left.
  4. Concatenate the subsequences in order to obtain the eighteen input long sequence with which the puzzle has been scrambled. Invert this sequence.

The spring locks in the module are wound up when a rotation is made.
Rotating a node unwinds the spring locks of the other nodes.
Undoing a rotation reverts the spring locks to their previous states.
The puzzle is reset if any spring lock is wound up four times.
The puzzle must only be reset when a digit on the bomb timer matches
the digit of the R tile.

Colour Sequence

Use the instructions in the table corresponding to the green tile.

Note:

  • Any mathematical operators or relations are applied to the corresponding digits of the coloured tiles.
  • Each entry in the sequence must be a colour.
    If an instruction returns a number, the entry is the colour of the tile whose digit is that number.
G = 1
  1. Add tile 9.
  2. Add the highest of R, O, and Y.
  3. If tile 9 is B, add B. Otherwise add the tile that is one higher than B.
  4. Add C if it is greater than the smallest serial number digit, otherwise add R.
  5. Add tile 5.
  6. Add Y if it is greater than E, otherwise add P.
G = 2
  1. Add ten minus C.
  2. If the digit of C appears in the serial number, add C. otherwise add N.
  3. Add tile 3.
  4. Add tile 6 if N is odd, otherwise add tile 7.
  5. Add the mean of R and C unless it is not an integer, in which case add the larger of R and C.
  6. Add tile 8.
G = 3
  1. Add the highest of C and B.
  2. Add tile 2.
  3. Add the mean of B and P unless it is not an integer, in which case add which of B and P is even.
  4. Add the median of Y, N, and E.
  5. Add tile 7.
  6. Add O if E is greater than 5, otherwise add R.
G = 4
  1. Add tile 1.
  2. Add G if there are no ports.
    Otherwise, add tile 9 if there are nine or more ports.
    Otherwise add the tile whose digit is the number of ports.
  3. If O, C, and N all have the same parity, add B. otherwise add which of O, C, and N has a parity different from the other two.
  4. Add tile 6.
  5. Add the sum of R and P if it is less than ten, otherwise add the difference between R and P.
  6. Add Y if it is odd, otherwise add half of Y.
G = 5
  1. Add the median of R, C, and E.
  2. Add the difference of O and P.
  3. Add tile 4.
  4. Add P if it is odd, otherwise add half of P.
  5. Add tile 9.
  6. Add the difference between B and C if it is not a multiple of three, otherwise add tile 1.
G = 6
  1. Add N if either P or E are equal to the number of ports, otherwise add R.
  2. Add tile 8.
  3. Add the lowest of C, B, and P.
  4. If tile 1 is E, add E. Otherwise add the tile that is one lower than E.
  5. Add the sum of Y and B if it is less than ten, otherwise add the difference between Y and B.
  6. Add tile 5.
G = 7
  1. Add tile 3.
  2. Add one less than the larger of B and P.
  3. Add ten minus R.
  4. Add tile 2.
  5. Add ten minus the larger of O and N.
  6. If the sum of C and E is a multiple of three, add C. Otherwise add E.
G = 8
  1. Add the mean of O and Y unless it is not an integer, in which case add which of O and Y is odd.
  2. Add tile 7.
  3. Add B if it is equal to either the number of lit or unlit indicators, or the sum of both. Otherwise add ten minus B;.
  4. Add the median of P, N, and E.
  5. If R is a multiple of three, add tile 9.
    Otherwise if tile 1 is R, add R.
    Otherwise add one less than R.
  6. Add tile 1.
G = 9
  1. Add one more than the lowest of R, Y, and B.
  2. Add P if E is less than 6, otherwise add ten minus P.
  3. Add tile 6.
  4. Add N if it is equal to either the number of AA or D batteries, or the sum of both. Otherwise add tile 8.
  5. Add tile 4.
  6. Add tile 5 if C is odd, otherwise add tile 9.

Base Subsequences

Each rotation has two components, position and direction.
The position is one of the four nodes on the module: Up, Left, Right, or Down.
The direction is either 90° clockwise or 90° anticlockwise.
Anticlockwise directions are denoted with a *.

Colour X/
Serial digit X
ROYGCBPNE
0/C/OL,R*,LR,R,UD,D,U*R*,L*,UL*,L*,R*R*,D*,D*U*,R*,DD,U,L*R*,R*,L*
1/D/PU,D,L*D,R,D*L*,D*,U*L,R,LL*,R*,D*D*,U*,RU,U,D*D,D,U*D*,R,U
2/E/QD*,R,U*R*,L*,UD,R*,DU,D*,L*D*,R*,DR*,L*,UU*,L,RL*,D*,UL*,D*,D*
3/F/RD,R*,D*L*,R,DU,R,L*U,R,L*D,R,RL,R*,UR,U*,RU,R,UD,L*,R*
4/G/SL,D,R*R,D,U*U*,L*,U*U*,D,UL*,U,RL,U,UD*,R*,R*R*,R*,DR,D,D
5/H/TL,R*,U*U,L,LR*,L,DD*,R,L*L,D*,R*D*,L,D*R,D,LR,L,LR,D*,U*
6/I/UD*,L,D*L,R,U*R,U*,RD,U*,U*L*,U*,R*U,R,UL,D,DU*,D,U*L*,R*,D*
7/J/VL*,U,LU,D,R*D*,L,R*U,D*,RD*,U*,U*D*,L,U*D*,U*,LL*,R*,UU*,U*,R
8/K/WL*,R*,UU,L*,DL*,R*,UL*,L*,D*D*,U*,R*R*,R*,UU,L*,DU*,L*,DR,L*,D
9/L/XU,L*,R*U,L*,RR*,U,L*L,D,LL,U,R*R,U,LU*,L*,R*D*,D*,UR*,D*,D*
A/M/YD*,U,DU,L*,L*U*,R,DR,U,D*R,D*,U*R,R,L*U*,R,UL,R*,DR*,D*,R*
B/N/ZL,L,D*L*,L*,R*L*,R,U*U,R*,L*D*,U*,R*U*,D*,D*D,R,RD*,U*,L*U,U,D

Subsequence Modifiers

Colour X-1Modification of Subsequence X
RReverse the first direction.
ORotate the second position 180°.
YRotate the third position 180° and reverse its direction.
GReverse the second direction.
CRotate the first position 180° and reverse its direction.
BRotate the third position 180°.
PReverse the third direction.
NRotate the first position 180°.
ERotate the second position 180° and reverse its direction.
Colour X-2Modification of Subsequence X
RSwap the first and second rotations.
ORotate the third position 90° anticlockwise.
YSwap the second and third rotations.
GRotate the first position 90° clockwise.
CSwap the first and third rotations.
BRotate the second position 90° clockwise.
PRotate the first position 90° anticlockwise.
NRotate the third position 90° clockwise.
ERotate the second position 90° anticlockwise.
Colour X-3Modification of Subsequence X
RRotate all positions 180° and reverse all directions.
OCycle the positions once to the left.
YCycle the positions once to the right.
GReverse all directions.
CRotate all positions 180°.
BCycle the directions once to the left.
PCycle the directions once to the right.
NCycle the rotations once to the left.
ECycle the rotations once to the right.

Note: Any mention of previous subsequences refer to the subsequences after each of their own modifications.

Colour X-4Modification of Subsequence X
RIf all directions of the previous subsequence are the same, reverse the third direction. Otherwise, rotate the third position 180°.
ORotate all positions 90° by the opposites of their corresponding directions.
YRotate all positions 90° clockwise.
GIf the previous subsequence has an odd number of clockwise directions, reverse the second direction. Otherwise, rotate the second position 180°.
CRotate all positions 180° and reverse all directions.
BRotate all positions 90° by their corresponding directions.
PRotate all positions 90° anticlockwise.
NIf the previous subsequence has more than one clockwise direction, reverse the first direction. Otherwise, rotate the first position 180°.
ERotate all positions 90° by the directions of their corresponding rotation in the previous subsequence.
Colour X-5Modification of Subsequence X
RIf there are more than seven clockwise directions within the previous subsequences, all directions are anticlockwise. Otherwise all directions are clockwise.
OIf there are an even number of clockwise directions within the previous subsequences, reverse all directions. Otherwise rotate all positions 180°.
YIf there are more than seven clockwise directions within the previous subsequences, cycle the rotations once to the left. Otherwise cycle the rotations once to the right.
GIf there are an even number of clockwise directions within the previous subsequences, rotate the positions 90° anticlockwise. Otherwise rotate all positions 90° clockwise.
CIf all eight possible rotations can be found within the previous subsequences, cycle the positions once to the left. Otherwise rotate all positions anticlockwise.
BIf there are more than seven clockwise directions within the previous subsequences, rotate the positions 90° anticlockwise. Otherwise rotate all positions 90° clockwise.
PIf there are an even number of clockwise directions within the previous subsequences, cycle the rotations once to the left. Otherwise cycle the rotations once to the right.
NIf there are more than seven clockwise directions within the previous subsequences, reverse all directions. Otherwise rotate all positions 180°.
EIf all eight possible rotations can be found within the previous subsequences, cycle the positions once to the right. Otherwise rotate all positions clockwise.