On the Optimization of Ghost

“What is this, other than adorable!?” *punches blob* “Aup!” *chat erupts in flames*

The original manual can be found here.

To disarm the module, press the blobs in such a way that they split into nothing. Avoid the spikes the blob shoots out by selecting the LEDs at the bottom to be away from the highlighted LED.

With the exception of phase 3, upon striking on this module via incorrect presses, progress of the presses made in the current phase will reset.

Phase One: One large blob

The blob must be pressed four times, each at different points on the timer.

If there are less than 60 seconds left, ignore the restrictions in this section and press the blob any time until it splits.

Otherwise, determine the times to press the blob such that each restriction has been met once. Do not meet a restriction more than once, otherwise the module will strike.

Restrictions:

  1. Both seconds digits of the timer are even and different.
  2. Both seconds digits of the timer are odd and different.
  3. Both seconds digits of the timer are the same.
  4. None of the restrictions above are met.
:X0:X1:X2:X3:X4:X5:X6:X7:X8:X9
:0XCDADADADAD
:1XDCDBDBDBDB
:2XADCDADADAD
:3XDBDCDBDBDB
:4XADADCDADAD
:5XDBDBDCDBDB

Phase Two: Four medium blobs

First, take all the characters of the serial number, converting letters into their A1Z26 counterparts, and create four values:

  • The first value is the product of the first and second characters.
  • The second value is the product of the third and fourth characters.
  • The third value is the product of the fifth and sixth characters.
  • The fourth value is the sum of all the characters in the serial number.

Modulo each of these 4 values by 24, and find that sequence in the manual provided. Press these 4 sequences in the order of the four values obtained, where each blob is labeled A-D in reading order. REMEMBER THESE FOR THE FINAL PHASE.

%24Seq.
0ABCD
1BACD
2CABD
3DABC
4ACBD
5BCAD
%24Seq.
6CBAD
7DBAC
8ADBC
9BDAC
10CDAB
11DCAB
%24Seq.
12ABDC
13BADC
14CADB
15DACB
16ACDB
17BCDA
%24Seq.
18CBDA
19DBCA
20ADCB
21BDCA
22CDBA
23DCBA

Phase Three: Sixteen small blobs

Using the four sequences obtained, arrange these into a 4×4 square in reading order. Place digits 1-4 to each row of that 4×4 square. Reading the result in column reading order (top to bottom, left to right), press these blobs in that order, where A-D are the columns of the blobs from left to right, and 1-4 are the rows from top to bottom.

Phase 3 Example:

Sequence from Phase 2: BDAC ACDB BDAC DBAC

BDAC
ACDB
BDAC
DBAC
B1D1A1C1
A2C2D2B2
B3D3A3C3
D4B4A4C4
Expected Presses:
B1 A2 B3 D4
D1 C2 D3 B4
A1 D2 A3 A4
C1 B2 C3 C4