On the Subject of Simon Shouts

Try to wrap your head around this one.

Try to wrap your head around this one.

Table A
0123
45°135°225°315°
Diagram B
A
BCD
FGHIJ
KLMNOP
QRSUV
WXY
Z
  • Rotate the four buttons clock­wise by an angle obtained from Table A and the number of ports modulo 4. This 2×2 arrangement of colors is your goal position in the grid below.
  • Rotate the squares in the module’s center similarly, but using the number of batteries modulo 4. This arrangement is your current position in the grid.
  • Each button flashes a letter in Morse code that indicates, as described by Diagram B, what movement in the grid this button will perform.
  • The grid wraps around in both dimensions (it’s a De Bruijn torus).
  • To disarm the module, navigate from the current position to the goal. Do not navigate onto any other position where any of the colors match the corresponding color in the goal position.
RRGRRRGRYRBRYRBRRRRGRBRYRGRRRBRYRGGGRGGGYGBGYGBGGRGGGBGYGGGRGBGYRRGRRRGRYRBRYRBRBRBGBBBYBGBRBBBYRGGGRGGGYGBGYGBGYRYGYBYYYGYRYBYYRYGYRYGYYYBYYYBYGRGGGBGYGGGRGBGYRBGBRBGBYBBBYBBBRRRGRBRYRGRRRBRYRYGYRYGYYYBYYYBYBRBGBBBYBGBRBBBYRBGBRBGBYBBBYBBBYRYGYBYYYGYRYBYY
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z