From: Mathieu Bouchard Date: 2001-02-05T08:54:37+09:00 Subject: [ruby-talk:10359] Re: Multi-dimensional Array On Sun, 4 Feb 2001, Jason wrote: > a. Is a multi-dimensional array the best way to track this information? It could be. You may take a look at the NArray library for that. However it will not be really useful -- you don't need many N-dimensional operations to write a Rogue-like game. So probably just arrays of arrays (or a single array) will be sufficient. I take into account the fact that NArray is a separately downloaded library. Like Kevin says: > Perhaps the walls would best be stored in > a grid, but the monsters and hero(s) would be > objects that would just store a location. in general: non-moving stuff goes in the grid, moving stuff doesn't. matju