code: def main():
      
      print("|---------------------------------------------------")
      print("|          Virtual AI Simulator")
      print("|---------------------------------------------------")
      print("| ")
      print("| r = rebuild planets        c = create character")
      print("| s = simulation             o = create opponent")
      print("| q = quit                   b = battle characters")
      print("| ")
      
      planets = load_planet_list()
      show_planet_shortlist(planets)
      print("|---------------------------------------------------")
      cmd = input('| Enter choice ?' )
      if cmd == 'r':
          rebuild_planet_samples()
      elif cmd == 'q':
          exit(0)
      elif cmd < str(len(planets)+1) and cmd > '0':
          fname = planets[int(cmd) - 1]['name'] + '.txt'
          print('viewing planet ' + fname)
          view_world.display_map(fldr + os.sep + fname)
      elif cmd == 'c':
          c1 = create_character()
      elif cmd == 'o':
          c2 = create_character()
      elif cmd == 'b':
          run_simulation(c1, c2)
      elif cmd == 's':
          print('not implemented')
      else:
          print('invalid command ' + cmd)
      main()
docs: test program for VAIS.
      Generates several planets and populates with animals and plants.
      Then places objects and tests the sequences.