Next: Movement Algorithm
Up: explorer: The Expanding Civilization
Previous: Code Analysis
The evolution code uses a simple algorithm: Move across the screen. For each planet where there are aliens, call the movement algorithm. If the movement algorithm decides that those aliens will colonize, it will set a special flag in the planet where they are colonizing. Once all planets have moved, the flags will be converted to new aliens.
Immanuel Buder
2003-06-03