Allele frequency p (this run)
Deterministic p (no drift)
Equilibrium p* (if stable)
This 2D companion replaces the 3D version's animated fitness-landscape population with the actual mathematics underneath it: a single two-allele locus evolved generation by generation under the real discrete-generation selection recursion p' = (p²w_AA + pq·w_Aa)/w̄, with independently adjustable selection coefficient s and dominance h so you can drive directional selection, recessive sweeps, stable heterozygote-advantage equilibria and unstable underdominance thresholds — the textbook population-genetics regimes — and an optional Wright–Fisher binomial-sampling step each generation that shows genetic drift overpowering weak selection in small populations.