Commit c09b03ee authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Wall: simplify. We always get Tile, never str

parent cfd85175
......@@ -84,10 +84,12 @@ class Wall(object):
"""define what tile this is"""
if element is None:
return tile
elif isinstance(tile, Tile):
return Tile(element)
assert isinstance(element, Tile), element
if isinstance(tile, Tile):
return element
tile.tile = Tile(element)
# tile is UITile
tile.tile = element
return tile
def deal(self, tiles=None, deadEnd=False):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment