Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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


Just a helpful note to others about the CELLS list:

3 Answers

Oops, rather (4, 4) is (column 5, row 5) since we start with (0, 0).

So think of (4, 4) as (column 4, row 4) in a spreadsheet.

Don't think of these tuples as on a X & Y axis (Cartesian coordinate system). Be sure to think of them as rows and columns. i.e. (4, 4) is like row 4 in column D of a spreadsheet... NOT the coordinate x = 4, y = 4. Don't get confused like I did!

Binyamin Friedman
Binyamin Friedman
14,615 Points

I disagree. I think for movement purposes and calculations, it is much easier to think of them as a coordinate system of whole numbers.