On the Subject of RGB Hypermaze

I have a great idea for a module! It's called Forget Me..... Simon's..... Ultra..... Hyper... Maze..... Stores!

On the module is a rotating hypercube and a display. Note down the sequence of five 4D rotations of the hypercube. The end of this sequence is indicated by a short pause.

Once you are certain you have all five rotations in order, press the display. Each vertex of the hypercube will change to one of 8 colors (black, red, green, blue, cyan, magenta, yellow, white) and each edge will change to one of the 3 primary colors (red, green, blue).

Edge Operation
X AND
Y OR
Z NAND
W NOR

Apply binary operations based on the edge's operator, obtained from the table on the right, and the color channel values of the edge's adjacent vertices that correspond to the color of the edge itself. If the binary operation is true, this edge is a wall. Otherwise, this edge is passable.

Press the display again to toggle between the colored cube and the input cube. You may return to the colored cube at any time by pressing the display again. The input cube will be uncolored except for a green vertex, representing the goal position, and a red vertex, representing your current position.

The walls of the colored cube's maze must be rotated in the order, left to right, shown on the display to receive the input cube's maze, with '1' on the display referring to the first rotation, '2' referring to the second, etc., from the sequence obtained at the start. Navigate the red vertex to the green vertex by pressing adjacent vertices across passable edges. Attempting to cross a 'wall' edge will result in a strike, and reset the module to the rotation stage. The rotations and display will be unchanged. Once the red vertex reaches the green vertex, the module will solve.

Note: The positive Y axis points 'out' of the image, away from the module.

Example Calculation

Edge: zag-back-top, red
Vertices: zag-back-top-left and zag-back-top-right, blue and yellow
Operation: AND (the edge is parallel to the X axis)
Inputs: 0 and 1 (blue does not contain red, 0; yellow contains red, 1)
0 AND 1 = false; There is no wall at zag-back-top on the colored cube's maze.