My guess: Sid Meier's Alpha Centauri.<font face="Book Antiqua">(vector_dist(x, y, crater_x, crater_y) > 8) reminds me of the crater area for some reason.  Also, the </font><font face="Book Antiqua">rules(FLEXIBLE) reminds me of one of the options when you create a new game.</font><font face="Book Antiqua">Same with landmarks.  I'd guess it has something to do with searching for where to build the first/next base.  The timeout definitely makes me believe that it's a search algorithm that may not have a best item to find, since if the timeout is low, it may skip the search and use whatever is already found.  Also, it looks closer during different points in the game.  There are a few more items, but I think that's enough.</font>