Reference
Evolution Algorithm
Look up syntax, contracts, layouts, algorithms, and exact behavior.
The implemented algorithm is a compact elitist genetic search over a continuous two-dimensional genome. It is not a symbolic planner and it does not analytically solve the projectile equation. The only objective signal comes from simulated rollouts.
evaluate every genome
sort attempts by descending fitness
copy elite attempts directly
while population is not full:
pick two parents from the ranked parent pool
blend their velocity vectors
optionally jitter vx and vy
clamp velocity bounds
append a small random-reset tail
evaluate the next generationRandom resets occupy roughly eight percent of the next population. In a draggable scene, the target or field can move abruptly; the reset tail prevents a population converged around the old shot from becoming the only genetic material available for the new problem.