def makeMove(self, move, render=True, animate=True):
        if type(move) == tuple:
            self.updateMessage(move[1])
            axis = move[0]
        else:
            axis = move

        self.rotationItem = self.state.rotationInfo(axis)

        if animate:
            self.rotating = True

            self.rotationAxis = self.rotationItem.rotationAxis
            self.rotatingValues = self.rotationItem.rotatingValues
            self.rotationDirection = self.rotationItem.rotationDirection
            self.rotationCount = self.maxRot

        else:
            self.rotating = False
            self.state.rotate(self.rotationItem)
            while (self.moveIndex + 1) % 20 != 0:
                if self.moveIndex == len(self.moveList) - 1:
                    self.updateMessage('')
                    break
                self.moveIndex += 1
                move = self.moveList[self.moveIndex]
                if type(move) == tuple:
                    self.updateMessage(move[1])
                    axis = move[0]
                else:
                    axis = move
                self.rotationItem = self.state.rotationInfo(axis)
                self.state.rotate(self.rotationItem)

        return render
dataset/ETHPy150Open bluquar/cubr/cube.py/Cube.makeMove/original