def make_udslice_table(cls): udslice_move = [[0] * cls.MOVES for i in range(cls.UDSLICE)] a = CubieCube() for i in range(cls.UDSLICE): a.phase_1_ud_slice = i for j in range(6): for k in range(3): a.edge_multiply(MOVE_CUBE[j]) udslice_move[i][3 * j + k] = a.phase_1_ud_slice a.edge_multiply(MOVE_CUBE[j]) return udslice_move