Accessing Program Output
0 Flashing: 0/8 0: PA=58, PD=101 1: PA=68, PD=101 2: PA=8, PD=140 3: PA=78, PD=98 4: PA=14, PD=95 5: PA=49, PD=114 6: PA=89, PD=51 7: PA=7, PD=149 10 Flashing: 1/8 0: PA=69, PD=100 1: PA=80, PD=100 2: PA=14, PD=141 3: PA=90, PD=97 4: PA=23, PD=96 5: PA=58, PD=114 6: PA=8, PD=51 7: PA=13, PD=150
Varying Parameters and Initial Conditions
Changing the Program
patches-own [fire count]
to setup
ca
setfire 0
if xcor > -49 [if (random 100) < density [setpc green]]
if xcor = -49 [setpc red setfire 1]
if xcor = -50 or
ycor = -50 or
ycor = 49
[setpc blue]
end
to go
nsum4 fire count
if pc = green
[if count > 0
[setfire 1 setpc red]]
if (pc > red - 4) and (pc < red + 1)
[setpc pc - 0.3]
end
to startup
ca
end
[Go to the Rhythm and Cognition Home Page]
URL: http://www.indiana.edu/~gasser/programs1.html
Last updated: 3 October 1995
Comments: gasser@salsa.indiana.edu
Copyright 1995, The Trustees of
Indiana University