@classmethod
    def setFaceColors(cls):
        cls.faceColors = {}
        for z in xrange(3):
            for y in xrange(3):
                for x in xrange(3):
                    pieceId = z * 9 + y * 3 + x + 1
                    cls.faceColors[pieceId] = [ ]
                    (X, Y, Z) = (x - 1, y - 1, z - 1)
                    pos = Vector(X,Y,Z)
                    for vec in [Vector(0,0,1), Vector(0,1,0), Vector(1,0,0)]:
                        for direction in cls.directions:
                            if direction // vec:
                                if direction ** pos > 0:
                                    cls.faceColors[pieceId].append(cls.directions[direction])
dataset/ETHPy150Open bluquar/cubr/cube.py/Cube.setFaceColors/original