NetLogo Simulation Modules

The simulation modules on this page are developed by Dr. Lin Xiang using NetLogo (Wilensky 1999), a freeware for PC, Mac, and Linux. To run these simulations,  you must first download and install NetLogo (version 5.3.1 or 6.0+) on your computer.  The latest version of NetLogo is 6.0.2 If you have not use NetLogo before, download 6.0.2 version via the following link and then install it on your computer/laptop.  

Go to the NetLogo download page   

Once NetLogo is installed, you may download any of the following simulations and run them on your computer.  Most of the simulations on this website have been updated to 6.0+ version. If you have had older version NetLogo, such as 5.3.1, on your computer, there are two choices for you: 1) you may still use 5.3.1 to open and run these simulations without any problem, except you will be warned by NetLogo with the following pop-up messages. When it happens, just click "continue" to proceed, or 2) just update NetLogo to 6.0+.  Be advised that Tablets, Chromebooks, or iPads are not compatible with NetLogo or these simulations.


These simulation modules are developed for instructional purposes. If you like these modules, have any suggestions, or want to know how to use them in a class in details, Feel free to contact Dr. Xiang at  You are asked to provide citations when using these simulations in any published work.

Ecology Simulations

Bark Beetle

In this module you will explore forest dynamics resulting from the interaction among bark beetle, spruce forest, temperature, and drought severity. 

Great Salt Lake

In this module you will explore the bird and brine shrimp population dynamics in south arm of the Great Salt Lake resulting from the lake salinity, which is affected by stream inflow, north arm water inflow, and evaporation


Genetics Simulations


Sunflower Inheritance

In this module you will investigate monohybrid, dihybrid and trihybrid cross in hypothetical sunflowers.

Ladybug Beetle Inheritance

In this module you will investigate the polymorphism resulted from multiple allelism and various dominance mechanisms.

Genetic Linkage

In this module you will investigate the genetic linkage, including both X-linkage and autosomal linkage.

Genetic Code

In this module you will be able to input nucleotides (A, C, G and U) to synthesize mRNA, translate it, and then infer genetic code.

Evolution Simulations


Loberg Stickleback

This module simulates the contemporary evolution of threespine stickleback in Loberg Lake, Alaska

Rocky Pocket Mice

In this module you are able to explore the roles of mutation, heritability, and selection in the process of rocky pocket mouse evolution.

Pumpkin Contest

A simulation on artificial selection. Enjoy growing giant or tiny pumpkins! Suggested for elementary students.



This is a simulation modeling the process of coevolution. User may also observe different evolutionary patterns by adjusting the speed mutation extent in prey and/or predator populations.

Fish Tank

A simulation on artificial selection. Enjoy breeding beautiful goldfish! Suggested for elementary students.

Galapagos finches

Investigate the effect of  different food recources on finch beak depth in this module. 

Human Skin Color Evolution

How does UV affect human skin color evolution through the effect of folic acid and vitamin D on human reproduction and suvival? Test your ideas in this module.

Evolution of Antibiotic Resistance

This module reveals the same scenario in the giant petri dish experiment on the evolution of antibiotic resistance.  Mutation and reproduction rates are included to expand student's exploration to the process.

Hardy-Weinberg Equilibrium

In this module you will explore various conditions in which HW is violated and learn how the allelic and genotypic frequencies change under these conditions.

Selection in Guppies

In this module you will investigate guppy coloration patterns in various habitats and infer the underlying selection mechanisms.

Cattle Body Size

In this module you will investigate the evolution of cattle body size affected  by different selection mechanisms.


In this module you will investigate the effects of different factors on the evolution of  coloration in a simulated fish population as well as explore the divergence in allopatry and sympatry.  

Genetic Drift & Natural Selection

In this module you will investigate the changes in allele and genotype frequencies affected only by genetic drift and by both genetic drift and natural selection.