-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_dead.ma
More file actions
26 lines (24 loc) · 1.21 KB
/
A_dead.ma
File metadata and controls
26 lines (24 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include(A_rule.inc)
[top]
components : Avain
[Avain]
type : cell
dim : (35,35)
delay : transport
defaultDelayTime : 1
border : nowrapped
neighbors : (-2,-2) (-2,-1) (-2,0) (-2,1) (-2,2)
neighbors : (-1,-2) (-1,-1) (-1,0) (-1,1) (-1,2)
neighbors : (0,-2) (-0,-1) (0,0) (0,1) (0,2)
neighbors : (1,-2) (1,-1) (1,0) (1,1) (1,2)
neighbors : (2,-2) (2,-1) (2,0) (2,1) (2,2)
initialvalue : 0
initialCellsValue : Avain.val
localtransition : AvainInfluenza
[AvainInfluenza]
rule : 1 100 { (0,0)=0 and ( #macro(Inner) * #macro(inner_2) + #macro(Outer) * #macro(outer_2) >3) and random < ( #macro(Vigilance) * ( #macro(Inner) * #macro(inner_2)/8 + #macro(Outer) * #macro(outer_2)/16 ) ) }
%rule : 1 100 { (0,0)=0 and ( #macro(Inner) * #macro(inner_1) + #macro(Outer) * #macro(outer_1) > 0) and random < ( #macro(Vigilance) * ( #macro(Inner) * #macro(inner_1)/8 + #macro(Outer) * #macro(outer_1)/16 ) ) }
rule : { if ( random < #macro(Immune), -1, 0) } 100 { (0,0)=1 }
rule : 2 100 { (0,0)=0 and stateCount(2) > 0 and random < #macro(Spreading) * ( #macro(Inner) * #macro(inner_2)/8 + #macro(Outer) * #macro(outer_2)/16 ) }
rule : { if ( random < #macro(dead), 3, 0) } 100 { (0,0)=2 }
rule : { (0,0) } 100 { t }