Supporting continuing development for Empyrean Challenge / Cluster Wars
You are not logged in.
Needed to generate a random universe to use to test other features (eventually). No thought given yet to play balance as far as equity in starting positions.
For now, can seed a set number of systems randomly in a defined 3-D space, 100 systems in 40 x 40 x 40 seems to work OK
/* 5% 4 stars, 5% 3 stars, 15% 2 stars, 75% 1 star */
/* Inner Orbits 75% Terrestrial (5% Hab), 25% Asteroids */
/* Outer Orbits 20% Asteroids, 50% Gas Giants, 30% Terrestrial */
95% chance of a planet at a given orbit, but if no planet generated rest of system beyond is empty orbits
This works out to about a 60% chance all 10 orbits will be filled with planets and a 5% chance there will be no planets
Asteroids are advantaged for METS/NMTS, disadvantaged for FUEL, Gas Giants are advantaged for FUEL, disadvantaged for METS/NMTS, Terrestrial are average for all resources
To model advantage/average/disadvantaged 2 random numbers are generated - advantaged takes higher, disadvantaged takes lower and average averages them
Amounts are Random 1-9 with 1-8 multiplied by a billion and 9 being unlimited
Percentage Yields are Random 10-99
Please comment on these assumptions for generation of universe and if anyone wants to take a look at a randomly generated universe you can download MAMP (free) to set up a local web server and mySQL database. I can sent you some SQL to build the database and the web server will let you look at it with phpMyAdmin.
Offline