- def __init__(self, pos, image=None):
- super(BoardWidget, self).__init__(pos, (96, 96))
+ def __init__(self, pos, tiles=None):
+ super(BoardWidget, self).__init__(pos, BOARD_SIZE)
+ # FIXME: Placeholder logic
+ self._tiles = []
+ for y in range(0, 5):
+ for x in range(0, 5):
+ tile_pos = (pos[0] + x * TILE_SIZE[0],
+ pos[1] + y * TILE_SIZE[1])
+ self._tiles.append(TileWidget(tile_pos, None))