I have been working on a new natural selection simulation. Instead of being based on student selection of parameters, this one will let students play the part of a predator as they catch prey in different environments. It is similar in function to the peppered moths simulation, but will have three environments instead of two.
In honor of Computer Science Education Week, here's a little bit of the current JavaScript code for the simulation...
skarafit, check out the population genetics simulation for more control in selecting variables, including allele frequencies, population size, and number of generations.
A way to make this lab even better, would be to allow the population to evolve from one generation to the next. And allow the student to set p. and q. for the first generation or set it at 0.5 for reach) The habitat could have a carrying capacity of 50. Each generation would pick up with the allele frequencies of the last.