- self.map_[pos] = random.choice(('.', '.', '.', '.', 'x'))
- player = self.game.thing_types['human'](self, 0)
- player.position = [random.randint(0, yx[0] -1),
- random.randint(0, yx[1] - 1)]
- npc = self.game.thing_types['monster'](self, 1)
- npc.position = [random.randint(0, yx[0] -1),
- random.randint(0, yx[1] -1)]
- item = self.game.thing_types['item'](self, 2)
- item.position = [random.randint(0, yx[0] -1),
- random.randint(0, yx[1] -1)]
- self.things = [player, npc, item]
+ self.maps[(0,0)][pos] = random.choice(('.', '.', '.', '.', 'x'))
+
+ player = add_thing_at_random('human')
+ self.player_id = player.id_
+ add_thing_at_random('monster')
+ add_thing_at_random('monster')
+ add_thing_at_random('food')
+ add_thing_at_random('food')
+ add_thing_at_random('food')
+ add_thing_at_random('food')