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,602 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.