def createNewShape(self): choice = gameEngine.getRandomNumber(0, len(shapes.shapes)-1) matrix = shapes.shapes[choice] self.shape = matrix
def __init__(self): choice = gameEngine.getRandomNumber(0, len(shapes.shapes)-1) matrix = shapes.shapes[choice] super().__init__(matrix)