## 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 C D A D A D A D A D D C D B D B D B D B A D C D A D A D A D D B D C D B D B D B A D A D C D A D A D D B D B D C D B D B

### 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
%24Seq.
7DBAC
9BDAC
10CDAB
11DCAB
%24Seq.
12ABDC
15DACB
16ACDB
17BCDA
%24Seq.
18CBDA
19DBCA
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

 B D A C A C D B B D A C D B A C
 B1 D1 A1 C1 A2 C2 D2 B2 B3 D3 A3 C3 D4 B4 A4 C4
 Expected Presses:B1 A2 B3 D4D1 C2 D3 B4A1 D2 A3 A4C1 B2 C3 C4