Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Collections (2016, retired 2019) Dungeon Game Cartographer

plz help in the def draw_map(player):

def draw_map(player): print("_"*5)
tile = "|{}"

for cell in CELLS:
    x, y = cell
    if x < 4:
        line_end = ""
        if cell == player:
            output = tile.format("X")
        else:
            output = tile.format("_")
    else:
        line_end = "\n"
        if cell == player:
            output = tile.format("X|")
        else:
            output = tile.format("_|")

    print(output, end=line_end)

but the output i get is : file"game.py", line 63 else: ^ Indentation Error:unindent Does not match any outer indentation level