code: def run(self, num_runs, show_trails, log_file_base):
          print("--------------------------------------------------")
          print("Starting Simulation - target = ", self.agent_list[0].target_y, self.agent_list[0].target_x)
          self.world.grd.set_tile(self.agent_list[0].target_y , self.agent_list[0].target_x , 'T')
          self.highlight_cell_surroundings(self.agent_list[0].target_y, self.agent_list[0].target_x)
          self.start_all_agents()
          try:
              with open (log_file_base + '__agents.txt', "w") as f:
                  f.write("Starting World = \n")
                  f.write(str(self.world.grd))
          except Exception:
              print('Cant save log results to ' + log_file_base)
          for cur_run in range(0,num_runs):
              print("WorldSimulation:run
              for num, agt in enumerate(self.agent_list):
                  if show_trails == 'Y':
                      if len(self.agent_list) == 1 or len(self.agent_list) > 9:
                          self.world.grd.set_tile(agt.current_y, agt.current_x, 'o')
                      else:
                          self.world.grd.set_tile(agt.current_y, agt.current_x, str(num))
                  agt.do_your_job()
                  self.world.grd.set_tile(agt.current_y, agt.current_x, 'A')
              if log_file_base != 'N':
                  self.world.grd.save(log_file_base + '_' + str(cur_run) + '.log')
          with open (log_file_base + '__agents.txt', "a") as f:
              f.write("\nWorld tgt= [" + str(self.agent_list[0].target_y) + "," + str(self.agent_list[0].target_x) + "]\n")
              f.write(str(self.world.grd))
              f.write('\n\nAgent Name , starting, num Steps , num Climbs\n')
              for num, agt in enumerate(self.agent_list):
                  res = agt.name + ' , [' + str(agt.start_y) + ', ' + str(agt.start_x) + '], '
                  res += str(agt.num_steps)  + ' , ' + str(agt.num_climbs) + ' , '
                  res += ''.join([a for a in agt.results])
                  f.write(res + '\n')