The Tower of Hanoi is a popular puzzle devised by French mathematician Édouard Lucas at the end of the 19th century. The challenge is to move all the discs from the axis they are on to one of the other two, following these simple rules.

In the case of a cube, if we call A the vertical direction, B the horizontal direction and C the anteroposterior direction, we will see that the directional (and dimensional) sequence is ABACABA.