+ def train_parser(self):
+ import string
+ self.parser.string_options = {
+ 'map_geometry': {'Hex', 'Square'},
+ 'char': [c for c in
+ string.digits + string.ascii_letters + string.punctuation
+ + ' '],
+ 'direction': self.game.map_geometry.directions,
+ 'direction+here': ['HERE'] + self.game.map_geometry.directions,
+ 'thing_type': self.game.thing_types.keys()
+ }
+