On the Subject of Cruel Dividable By 2

It’s back!... And yet it still doesn’t know that it’s “divisible”, not “dividable”, in this context...

This module contains a display flashing a sequence of digits (with a break between the start/end of the sequence; the sequence can be restarted by pressing the display), and two buttons: a green one labeled “Y”, and a red one labeled “N”.

The flashing sequence of digits gives you information about some digits, which were placed into the maze below, and which then moved around it.

0 1 2 3 4
0
1
2
3
4
  • The first two digits of the sequence, concatenated into a two-digit number, give the value of N (10-14) - the number of digits that were placed into the maze.
  • The next N * 3 digits, split into N groups of 3 - digits D, R, and C in each group, respectively, give information about each digit’s value and starting position in the maze:
    • D is the value of the digit (0-9).
    • R is the starting row of the digit (0-4).
    • C is the starting column of the digit (0-4).
  • The rest of the digits in the sequence are Moves. For each Move (0-3):
    • Convert it into a direction according to the table below:
0123
UpRightDownLeft
    • Move each digit in the maze one space in the received direction. If a digit cannot move in the received direction, rotate the direction for the said digit clockwise until it can move.
  • After all Moves have been made, every row in the maze should have at least one digit in it.

After determining the final positions of all digits in the maze, for each row (in order 0 to 4), determine which button needs to be pressed, and when:

  • If the doubled sum of all digits in the current row is in the range 23 to 87 (exclusive on both sides), you should press the “Y” button. Otherwise, you should press the “N” button.
  • Take the sum of all digits in the current row, each taken to the power of its column number (e.g. if the current row has a 3 in column 2, and a 7 in column 4, you would take the sum of 32 and 74).
    Take the result modulo 15, and use it in one of the tables below to obtain a list of four press times.
    Press the correct button when the bomb timer’s seconds match any of the press times from the obtained list.
#Press Times
0:00, :15, :30, :45
1:01, :16, :31, :46
2:02, :17, :32, :47
3:03, :18, :33, :48
4:04, :19, :34, :49
#Press Times
5:05, :20, :35, :50
6:06, :21, :36, :51
7:07, :22, :37, :52
8:08, :23, :38, :53
9:09, :24, :39, :54
#Press Times
10:10, :25, :40, :55
11:11, :26, :41, :56
12:12, :27, :42, :57
13:13, :28, :43, :58
14:14, :29, :44, :59

Pressing the correct button at the correct time for each row will solve the module. Pressing the incorrect button or pressing the correct button at an incorrect time will give a strike, but will not reset button presses.