On the Subject of XOR Shift

Now you can’t blame bad RNG on the game.

The XOR Shift module features a display showing a colored number, along with a “Yes” button and a “No” button. The displayed number could either be correct or incorrect after following the corresponding steps below. The goal is to determine if the display number matches the resulting number after these steps.

In order to solve the module, first add every value of the serial number together, (A=1, Z=26) this is your starting number. Then, using the lookup table below, find the correct shift amount.

0-1 Batteries 2 Batteries 3 Batteries 4 Batteries 5+ Batteries
Blue 14032
Red 32433
Yellow 23142
Magenta23421
Green 32434

Now, convert the starting number into an 8-bit binary number, (eg. 36 becomes 00100100) and shift the bits right by your shift amount (00100100 becomes 00010010 with a shift of 1), this is your second number.

Note: When shifting bits, any 1s do not loop around. If you had 00000001, shifting by 1 would make change it into 00000000.

Bitwise XOR your starting number and second number together, and convert the result back into decimal. If the resulting number matches the number on the display, press “Yes”; if not, then press “No”.