Game - Map data structures

Erik Max Francis max at alcyone.com
Fri Jun 18 21:48:03 EDT 2004


Sam Holden wrote:

> That's going to make it really hard to determine which boats are on a
> given water tile.

Surely if you're dealing with populating a grid of things with objects,
you're not going to do so by holding objects in each slot.  You'll
implement some sort of sparse array, instead.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ We must use time as a tool, not as a crutch.
    -- John F. Kennedy



More information about the Python-list mailing list