self.send('MAP_SIZE ' + stringify_yx(self.world.map_.size))
visible_map = self.world.get_player().get_visible_map()
for y in range(self.world.map_.size[0]):
- self.send('VISIBLE_MAP_LINE %5s %s' % (y, visible_map.get_line(y)))
+ self.send('VISIBLE_MAP_LINE %5s "%s"' % (y, visible_map.get_line(y)))
for thing in self.world.things:
self.send('THING_TYPE %s %s' % (thing.id_, thing.type_))
self.send('THING_POS %s %s' % (thing.id_,
def get_visible_map(self):
size = self.world.map_.size
- m = Map(size, '?'*size[0]*size[1])
+ m = Map(size, ' '*size[0]*size[1])
y_me = self.position[0]
x_me = self.position[1]
for y in range(m.size[0]):