to go& A# l' P$ N$ {, o; C
prices
7 T; M7 f; @+ L" D4 H: ?' y: N enlarge-market! y3 z" h7 z& j
supervision
* F6 x3 S# R; i5 z2 n$ S1 e move-turtles& b$ D1 s& o7 n8 E/ F4 a" A! d
new-producer4 M6 m: \5 i1 o: H N
check-death# T- H& E# B% H3 v3 [" [
tick0 u$ P. ]9 x! z9 q+ X( c
do-plots. p G# x6 F/ |1 e3 ?6 Z) k5 r- H
end
5 T7 W# Y" f. Z3 l1 A1 w% } |to move-turtles# @( i( F- Q, w. f% F& M% |
pcs[, r4 V" O+ L! e/ ~
ifelse counter > 0 w F5 R' m7 L- p
[ set counter counter - 1
) s7 L( a% O# y- b- p, ~% C1 e set money money - cost1]3 {( {1 V) @& I
[ right random 360( C8 ^& P' o5 c V* C! o
repeat 1 [rt random 360) N. t$ C6 E9 \! \0 X
forward 1
4 ]7 G; l0 w2 D0 X' ]$ | i if pcolor = grey [% O3 J! J5 ^$ p+ O( L$ H
set pcolor yellow - 2
0 |6 Z. ]( n1 C, m6 I& u0 c! p9 d6 h set quantity(quantity + 1)]]
( e& ]" n& q0 J' j set money(1 - exposure-rate / 100)*(money + jiage * quantity); x6 n d' W) \8 C+ c* M
set money money - cost1]/ R" _( A9 W9 b. J# j# P7 Y) E
]
5 i! C+ W, i ^3 Q+ l ask pes
& ]. q' h; m* S9 O. ^: Y [right random 360/ N; \, e- C4 W
forward 1( a6 V4 r q O* [4 }' O
set money money + jiage * quantity3 \8 b: P: ?! S9 E; }
set money money - cost2]
! w" S; X/ t& Jend |