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 Testing First Steps With Testing Writing and Running Doctests

Martin Cornejo Saavedra
Martin Cornejo Saavedra
18,132 Points

Small error in dd_games.py in Python testing course

@Kenneth I found a small error on dd_game.py when trying to play it (the one on the 'Downloads' section).

Inside 'def play():' function, you call 'draw_map(cells)', but If you go to the defined function 'def draw _map():' it has no arguments.

I fixed it by adding the argument 'cells' to the function definition.

def draw_map(cells):   #Here I added 'cells' argument

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Hey, thanks for finding that. I've put up a new version of the download that shouldn't have that problem.