示例#1
0
 def __init__(self, rows, columns, brickslimit):
     self.rows = rows
     self.columns = columns
     self._brickslimit = brickslimit
     Walls.__init__(self, 2, 4)
     Bricks.__init__(self, 2, 4)
     self.enemies = []
示例#2
0
 def __init__(self, rows, columns, brickslimit, length, width):
     self.rows = rows
     self.columns = columns
     # Bricks limit indicates max amount of bricks placed in the board
     self._brickslimit = brickslimit
     Walls.__init__(self, length, width)
     Bricks.__init__(self, length, width)
     self.enemies = []