View Single Post
  #14  
Old March 15th, 2007, 10:59 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Tools and Tutorials

Attached find the best damned start-province finding perlscript anyone will ever write.

USAGE:
cp map.map new_map.map
perl (scriptname) X R map.map >> new_map.map

It takes as input the minimum number of neighbors each start-province must have (X), and the absolute minimum distance between each pair of start provinces (R).

For the first start province it chooses the eligible province with the fewest eligible start provinces within R.

FOr the second start province it chooses the eligible province farthest from the first start province.

Now it adds provinces in order to minimize the *variance* in the remoteness of all start provinces, and keeps doing so until it can't fit any more.

The "remoteness" of a start province is the sum of all path lengths between that province and other start provinces.

This will tend to spread the start provinces out on the map more or less uniformly. A province with fewer close neighbors will tend to be closer to the close neighbors that it does have.

I'm happy to alter the script somewhat if needed to meet community needs. It requires a real computer (with perl) to run.

It doesn't presently generate sea start sites. I'll add this functionality at some point. Oh, it also suggests places to add specials but it doesn't actually add any.
Attached Files
File Type: zip 504573-BalancedStart.zip (2.3 KB, 809 views)
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
The Following User Says Thank You to DrPraetorious For This Useful Post: