StupidModel : version u

 

100 agents (“bugs”) distributed randomly into a 100 x 100 grid space. Bugs have one action: move to a randomly chosen neighbor cell. Bug locations are displayed graphically.
To download this tutorial =.

StupidModel - version 1
Defining Cell class
Defining Bug class
 

1.2.1 Add contol method named move

Adjust the initial instanciation of Stupid Model
 

1.3.1 initCells

 

1.3.2 initAgents

Adjust the scheduling of Stupid Model
Write a specific pov method for the Bug
Run version 1 of Stupid Model
 

 


Le Cirad Centre de coopération internationale en recherche agronomique pour le développement
Legal notice © Copyright Cirad 2001-2015 cormas-webmaster@cirad.fr