ID:160970
 
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.
I am not sure how long it takes, but you could pick text in New() for the turf.
In response to Kaiochao
Fantastic! It works beautifully for the time being. Thanks a bunch Kaoichao.