Select an Example

Snppets
Start here! This is a mini-tutorial on turtles, patches, and links. It lets you experience the Agentscript basics and edit their use. A must-see if you are new to modeling!
Template
This is a template for starting out a new Model from scratch. It has a very simple TemplateModel that shows use of turtles and links, along with an index.html file providing a View and an Animator to run the model.
Ants
Ants find the shortest path to food by leaving a trail of evaporating pheromones in their environment. A classic example of stigmergic behavior.
Buttons
How long does it take to completely connect a set of buttons by adding one link at a time between two randomly chosen pairs.
Diffusion
Diffusion is the process by which particles move from an area of higher concentration to an area of lower concentration. Here two turtles travel through patches, dropping a random value on patches and diffusing these values.
Droplets
Droplets on a tile moving downhill. Four choises on choosing the downhill function.
Exit
Droplets on a tile moving downhill. Four choises on choosing the downhill function.
Fire
Fire spreading on patches based on neighbor probabilities.
Flock
How do flocks form without a leader? Craig Reynolds, in 1986, found that three simple rules for individuals birds results in flocking behaviour.
GridPath
How to make a path from top-left to bottom-right without getting trapped by surrounding neighbors using flood fills every new step.
KelpForest
This shows how a Kelp Forest evolves over time, with the interaction between kelp, urchins and sea stars.
Life
The Game of Life consists of a grid of cells which, based on a few mathematical rules, can live, die or multiply. It was invented by mathematician John Conway.
LinkTravel
How do cars travel along roads in a model using links for the road.
SlimeMold
How do many single-celled organisms coordinate to form groups?
TSP
The Traveling Sales Person which computes the shortest distance touching each node in a graph.