title: How should a RPG tile-based map be represented?
body: <p>I have a tile-based RPG system where a specific tile type is represented by a string (i.e. Grass = "g", Dirt = "d"). The problem is that I do not know how to represent a map (a group of tiles gathered in a specific order) in a way where each tile can be accessed by their x/y coordinates efficiently. Should the maps be represented in array format :</p>
  
  <pre><code>map[0].coords[x][y] = "g";
  </code></pre>
  
  <p>Or perhaps in some other way?</p>