Me and a friend are working on a ASCII character dungeon crawler type RPG, like Rogue or Nethack. At the moment we're trying to work out a way of randomly assigning text characters to turfs before the map is created. For example a patch of grass could turn up as a '.' a ',' or a '"'. If anyone here has played Dwarf Fortress they'll know what I mean.
I know that when a turf is initially defined it needs a constant expression, otherwise I'd use the Pick proc, or something similar, when defining the "text" variable for the turf.
Does anyone have any ideas? Bear in mind that at the moment we're using precompiled maps, but evetually hope to move on to using randomly generated dungeons.