Code:
Select all
#C [[ RANDOMIZE ]]
x = 64, y = 64, rule = MVS
!
@RULE MVS
In this rule, evil murderers kill civilians and sheriffs while the heroic sheriffs kill murderers. All the time, people are either dying or being born.
@TABLE
n_states:4
neighborhood:Moore
symmetries:permute
var states = {0,1,2,3}
var s1 = states
var s2 = states
var s3 = states
var s4 = states
var s5 = states
var s6 = states
var s7 = states
var s8 = states
var innoc = {0,1,2}
var i1 = innoc
var i2 = innoc
var i3 = innoc
var i4 = innoc
var i5 = innoc
var i6 = innoc
var i7 = innoc
var i8 = innoc
var civ = {0,1}
var c1 = civ
var c2 = civ
var c3 = civ
var c4 = civ
var c5 = civ
var c6 = civ
var c7 = civ
var c8 = civ
var nonsheriff = {0,1,3}
var n1 = nonsheriff
var n2 = nonsheriff
var n3 = nonsheriff
var n4 = nonsheriff
var n5 = nonsheriff
var n6 = nonsheriff
var n7 = nonsheriff
var n8 = nonsheriff
var living = {1,2,3}
var l1 = living
var l2 = living
var l3 = living
var l4 = living
var l5 = living
var l6 = living
var l7 = living
var l8 = living
var livingnonmurderer = {1,2}
var lnm1 = livingnonmurderer
var lnm2 = livingnonmurderer
var lnm3 = livingnonmurderer
var lnm4 = livingnonmurderer
var ls = {0,2}
var ls2 = ls
var lm = {0,3}
0, 1,1,1,c1,c2,0,0,0, 1 #Is born as a civilian
0, 2,2,2,ls,ls,0,0,0, 2 #Is born as a sheriff
0, 1,2,lnm1,lnm2,0,0,0,0, 2 #Is born as a sheriff
0, 3,3,3,lm,lm,0,0,0, 3 #Is born as a murderer...
1, 1,1,i1,i2,0,0,0,0, 1 #Survives in the moderate company of people
1, 1,1,1,1,c1,c2,0,0, 2 #Climbs the ranks and becomes sheriff!
1, 1,1,1,lnm1,lnm2,lnm3,i1,i2, 3 #Gets tired of all the annoying people and becomes a murderer!
1, 2,2,2,i1,i2,0,0,0, 3 #Has a very heated argument with the sheriffs and plots to kill!
1, 3,3,3,3,l1,l2,s1,s2, 3 #Actually, the civilian dies and a murderer takes its spot...
1, c1,c2,0,0,0,0,0,0, 0 #Dies of loneliness :(
2, 1,1,1,c1,0,0,0,0, 2 #Sheriff survives in the company of just people
2, 2,2,ls,c1,0,0,0,0, 2 #Sheriff survives in the company of a small or large group of others
2, 2,2,2,2,s1,s2,s3,s4, 0 #Sheriff dies in heated banter!
2, lnm1,lnm2,lnm3,lnm4,s1,s2,s3,s4, 0 #Sheriff goes into poverty and starves... :(
3, 3,3,3,s1,c1,c2,c3,c4, 3 #Murderer survives with 3 or 4 other murderers
3, s1,s2,i1,i2,i3,i4,i5,i6, 0 #Mentally unstable murderer dies of... you can fill in the blank
3, 3,3,3,3,3,s1,s2,s3, 0 #Murderer dies in a gang fight!
3, 2,i1,i2,i3,i4,i5,i6,i7, 0 #Murderer dies in a tied duel
3, 2,2,s1,s2,s3,s4,s5,s6, 0 #Murderer dies in any situation with partnered sheriffs
innoc, 3,n1,n2,n3,n4,n5,n6,n7, 0 #One murderer can kill a whole crowd of unprotected innocents!
innoc, 3,3,n1,n2,s1,s2,s3,s4, 0 #A gang of murderers kill any insufficiently protected innocents!
states, s1,s2,0,0,0,0,0,0, 0 #Anyone dies of isolation
states, l1,l2,l3,l4,l5,l6,l7,l8, 0 #Anyone dies of overpopulation
@COLORS
0 0 0 0
1 255 255 255
2 0 127 255
3 255 0 0