Rule request thread

For discussion of other cellular automata.
User avatar
hotcrystal0
Posts: 2828
Joined: July 3rd, 2020, 5:32 pm
Location: United States

Re: Rule request thread

Post by hotcrystal0 » Yesterday, 7:27 pm

Can this rule be fixed so that when state 2 survives by S3i, it becomes state 4? The line 2,b1,b2,0,0,0,0,0,b3,4 doesn’t seem to be working.

Code: Select all

@RULE test_rule

@TABLE


n_states:5
neighborhood:Moore
symmetries:rotate4reflect

var a={0,1,2,3,4}
var a1=a
var a2=a
var a3=a
var a4=a
var a5=a
var a6=a
var a7=a
var b = {1,2,4}
var b1 = b
var b2 = b
var b3 = b
var c = {0,3}
var c1 = c
var c2 = c
var c3 = c
var c4 = c
var c5 = c
var d = {1,2}
var d1 = d
var d2 = d
var d3 = d

# Birth
0,b1,b2,b3,c,c1,c2,c3,c4,1
0,b1,b2,c,b3,c1,c2,c3,c4,1
0,b1,b2,c,c1,b3,c2,c3,c4,2
0,b1,b2,c,c1,c2,b3,c3,c4,1
0,b1,b2,c,c1,c2,c3,b3,c4,1
0,b1,b2,c,c1,c2,c3,c4,b3,1
0,b1,c,b2,c1,b3,c2,c3,c4,1
0,b1,c,b2,c1,c2,b3,c3,c4,1
0,b1,c,c1,b2,c2,b3,c3,c4,1
0,c,b1,c1,b2,c2,b3,c3,c4,1

0,2,0,2,0,0,0,0,0,3


# Survival
d,b1,b2,c,c1,c2,c3,c4,c5,1
d,b1,c,b2,c1,c2,c3,c4,c5,1
d,b1,c,c1,b2,c2,c3,c4,c5,1
d,b1,c,c1,c2,b2,c3,c4,c5,1
d,c,b1,c1,b2,c2,c3,c4,c5,1
d,c,b1,c1,c2,c3,b2,c4,c5,1
d,b1,b2,b3,c,c1,c2,c3,c4,1
d,b1,b2,c,b3,c1,c2,c3,c4,1
d,b1,b2,c,c1,b3,c2,c3,c4,1
d,b1,b2,c,c1,c2,b3,c4,c5,1
d,b1,b2,c,c1,c2,c3,b3,c4,1
d,b1,b2,c,c1,c2,c3,c4,b3,1
d,b1,c,b2,c1,b3,c2,c3,c4,1
d,b1,c,b2,c1,c2,b3,c3,c4,1
d,b1,c,c1,b2,c2,b3,c3,c4,1
d,c,b1,c1,b2,c2,b3,c3,c4,1

2,b1,b2,0,0,0,0,0,b3,4


# Death
d,a,a1,a2,a3,a4,a5,a6,a7,0
3,d,0,d1,a,0,0,0,0,0
4,d,d1,d2,d3,a,0,0,0,1

@COLORS

0 0 0 0
1 0 255 0
2 0 127 0
3 96 96 96
4 254 254 254


@ICONS

circles

Code: Select all

x = 192, y = 53, rule = B3/S23
33$42b4o$41b6o$40b2ob4o$41b2o3$41b2o$39bo6bo$38bo8bo$38bo8bo$38b9o3$42b
4o$41b6o$40b2ob4o$41b2o!

User avatar
dvgrn
Moderator
Posts: 11166
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Rule request thread

Post by dvgrn » Yesterday, 7:56 pm

hotcrystal0 wrote:
Yesterday, 7:27 pm
Can this rule be fixed so that when state 2 survives by S3i, it becomes state 4? The line 2,b1,b2,0,0,0,0,0,b3,4 doesn’t seem to be working.
You'd have to put that line in as the first survival rule, or somewhere toward the top anyway. Currently 0,b1,b2,c,c1,c2,c3,c4,b3,1 is going to take precedence.

(EDITed the line that triggers -- I read it wrong the first time.)

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Rule request thread

Post by confocaloid » Yesterday, 8:33 pm

hotcrystal0 wrote:
Yesterday, 7:27 pm
[...] The line 2,b1,b2,0,0,0,0,0,b3,4 doesn’t seem to be working. [...]
The rule "d,b1,b2,c,c1,c2,c3,c4,b3,1" will be followed instead, due to appearing earlier in the file and matching all cases when "2,b1,b2,0,0,0,0,0,b3,4" could possibly match. (The variable "d" can take value 2, and the variables "c", "c1", "c2", "c3", "c4" each can take value 0.)

A likely solution would be to move that line up, so that it would appear above "d,b1,b2,c,c1,c2,c3,c4,b3,1" at least. (Where exactly, depends on how you would like the rules to work.)

Trimmed file with relevant parts:

Code: Select all

var a={0,1,2,3,4} ...
var b={1,2,4} ...
var c={0,3} ...
var d={1,2} ...
...
# Survival
...
d,b1,b2,c,c1,c2,c3,c4,b3,1
...
2,b1,b2,0,0,0,0,0,b3,4
...
dvgrn wrote:
Yesterday, 7:56 pm
[...] Currently 0,b1,b2,c,c1,c2,c3,c4,b3,1 is going to take precedence. [...]
"0,b1,b2,c,c1,c2,c3,c4,b3,1" cannot take precedence over "2,b1,b2,0,0,0,0,0,b3,4" because the former rule can only be followed when the middle cell's current state is 0, and the latter can only be followed when the middle cell's current state is 2.
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
LuveelVoom
Posts: 25
Joined: April 27th, 2022, 7:59 pm

Re: Rule request thread

Post by LuveelVoom » Today, 12:17 am

fourstat.jpeg
fourstat.jpeg (446.67 KiB) Viewed 100 times
this 1d rule from a CA textbook i was reading (would appreciate it if the rule worked similarly to W rules where time goes down)

Code: Select all

x = 74, y = 29, rule = R1,C3,S2-3,B3,NW211111112,012
$56.A$56.2BA$53.A3.2B$51.B.BA2.B$52.B4.A$4.A48.B$4.BA41.B$46.A3.B.A$52.
B$53.BA$2.A3.B$.B$2.B51.B$52.A$70.BA$68.A3B$71.BA2$60.B2.A5.A$63.B3.B
.BA$59.A4.BA2.B$69.B$65.B3$66.B$65.A!

islptng
Posts: 94
Joined: May 24th, 2024, 6:17 am
Location: 种花家

Re: Rule request thread

Post by islptng » Today, 12:38 am

LuveelVoom wrote:
Today, 12:17 am
fourstat.jpeg this 1d rule from a CA textbook i was reading (would appreciate it if the rule worked similarly to W rules where time goes down)
Is it this?
EDIT: I made a typo, fixed

Code: Select all

#C an adjustable speed spaceship
x = 6, y = 1, rule = p198168_book_1dCA
C5B!

@RULE p198168_book_1dCA

@TABLE
n_states:4
neighborhood:Moore
symmetries:none

# any of the states
var x = {0,1,2,3}
var y = x

# transitions mentioned
0,1,2,0,0,0,0,0,0,0 # 0,1,a -> 0
0,2,2,0,0,0,0,0,0,3 # 0,a,a -> b
0,1,2,0,0,0,0,0,1,2 # 1,1,a -> a
0,0,0,0,0,0,0,0,3,2 # b,0,0 -> a
0,2,x,0,0,0,0,0,3,3 # b,a,* -> b
0,3,x,0,0,0,0,0,y,1 # *,b,* -> 1

# else remain
var q = {1,2,3}
0,q,x,0,0,0,0,0,y,q

@COLORS
0   0   0   0 0
1 255 255 255 1
2   0 255   0 alpha
3 255   0   0 beta
Last edited by islptng on November 19th, 2024, 12:55 am, edited 1 time in total.
Not so active anymore because I'm in a mega giga terra dilemma.
| My sandbox | All my engineered replicators
| Probably the first rule with common (2,1)c/6 knightships

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Rule request thread

Post by confocaloid » Today, 12:41 am

LuveelVoom wrote:
Today, 12:17 am
fourstat.jpeg this 1d rule from a CA textbook i was reading (would appreciate it if the rule worked similarly to W rules where time goes down)
Does the book say anything about what to do if neither of the listed rules applies?

Code: Select all

x = 49, y = 1, rule = Test_post198168_fourstat_jpeg
C2.C2.B2.A5.C.A6.C.A6.CB10.C2.A!

@RULE Test_post198168_fourstat_jpeg

0 = 0
1 = 1
2 = alpha
3 = beta

@TABLE
n_states:4
neighborhood:Moore
symmetries:none

var x={0,1,2,3}
var y=x
var z=x

# Rules listed in the form:
#  c,r,0,0,0,0,0,l

0, 1,2,0,0,0,0,0,0, 0
0, 2,2,0,0,0,0,0,0, 3
0, 1,2,0,0,0,0,0,1, 2
0, 0,0,0,0,0,0,0,3, 2
0, 2,x,0,0,0,0,0,3, 3
0, 3,x,0,0,0,0,0,y, 1

0, y,z,0,0,0,0,0,x, y
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
LuveelVoom
Posts: 25
Joined: April 27th, 2022, 7:59 pm

Re: Rule request thread

Post by LuveelVoom » Today, 1:14 am

confocaloid wrote:
Today, 12:41 am

Does the book say anything about what to do if neither of the listed rules applies?

Code: Select all

x = 49, y = 1, rule = Test_post198168_fourstat_jpeg
C2.C2.B2.A5.C.A6.C.A6.CB10.C2.A!

@RULE Test_post198168_fourstat_jpeg

0 = 0
1 = 1
2 = alpha
3 = beta

@TABLE
n_states:4
neighborhood:Moore
symmetries:none

var x={0,1,2,3}
var y=x
var z=x

# Rules listed in the form:
#  c,r,0,0,0,0,0,l

0, 1,2,0,0,0,0,0,0, 0
0, 2,2,0,0,0,0,0,0, 3
0, 1,2,0,0,0,0,0,1, 2
0, 0,0,0,0,0,0,0,3, 2
0, 2,x,0,0,0,0,0,3, 3
0, 3,x,0,0,0,0,0,y, 1

0, y,z,0,0,0,0,0,x, y
No, I assume nothing happens

Code: Select all

x = 74, y = 29, rule = R1,C3,S2-3,B3,NW211111112,012
$56.A$56.2BA$53.A3.2B$51.B.BA2.B$52.B4.A$4.A48.B$4.BA41.B$46.A3.B.A$52.
B$53.BA$2.A3.B$.B$2.B51.B$52.A$70.BA$68.A3B$71.BA2$60.B2.A5.A$63.B3.B
.BA$59.A4.BA2.B$69.B$65.B3$66.B$65.A!

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Rule request thread

Post by confocaloid » Today, 1:24 am

confocaloid wrote:
Today, 12:41 am
[...] Does the book say anything about what to do if neither of the listed rules applies? [...]
LuveelVoom wrote:
Today, 1:14 am
[...] No, I assume nothing happens
I assumed "stay in the old state unless some rule prescribes otherwise".
(It is interesting that those six rules can be read in any order, without changing the effect, as at most one of them applies for a specific cell at a specific time. Also, for all six rules, the future state of the cell in the next generation differs from its current state, which makes the nothing-happens assumption more plausible.)

Taking into account the requirement "... where time goes down", however, that becomes a separate catch-all rule at the end, which is necessary merely to be able to "do nothing":

Code: Select all

0, y,z,0,0,0,0,0,x, y
Without that rule, one would get the following instead:

Code: Select all

x = 49, y = 1, rule = Test_post198168_fourstat_jpeg
C2.C2.B2.A5.C.A6.C.A6.CB10.C2.A!

@RULE Test_post198168_fourstat_jpeg

0 = 0
1 = 1
2 = alpha
3 = beta

@TABLE
n_states:4
neighborhood:Moore
symmetries:none

var x={0,1,2,3}
var y=x
var z=x

# Rules listed in the form:
#  c,r,0,0,0,0,0,l

0, 1,2,0,0,0,0,0,0, 0
0, 2,2,0,0,0,0,0,0, 3
0, 1,2,0,0,0,0,0,1, 2
0, 0,0,0,0,0,0,0,3, 2
0, 2,x,0,0,0,0,0,3, 3
0, 3,x,0,0,0,0,0,y, 1
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

unname4798
Posts: 1202
Joined: July 15th, 2023, 10:27 am
Location: On the highest skyscraper

Re: Rule request thread

Post by unname4798 » Today, 7:10 am

confocaloid wrote:
Today, 1:24 am
...
Without that rule, one would get the following instead:

Code: Select all

x = 49, y = 1, rule = Test_post198168_fourstat_jpeg
C2.C2.B2.A5.C.A6.C.A6.CB10.C2.A!

@RULE Test_post198168_fourstat_jpeg

0 = 0
1 = 1
2 = alpha
3 = beta

@TABLE
n_states:4
neighborhood:Moore
symmetries:none

var x={0,1,2,3}
var y=x
var z=x

# Rules listed in the form:
#  c,r,0,0,0,0,0,l

0, 1,2,0,0,0,0,0,0, 0
0, 2,2,0,0,0,0,0,0, 3
0, 1,2,0,0,0,0,0,1, 2
0, 0,0,0,0,0,0,0,3, 2
0, 2,x,0,0,0,0,0,3, 3
0, 3,x,0,0,0,0,0,y, 1
Why is there a suffix "jpeg"?
This profile is sponsored by Unname Inc. (2022-2024)
Status: none.
Companies: NOT (Nihonium Orange Team)

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Rule request thread

Post by confocaloid » 55 minutes ago

unname4798 wrote:
Today, 7:10 am
confocaloid wrote:
Today, 1:24 am
...
Without that rule, one would get the following instead:

Code: Select all

x = 49, y = 1, rule = Test_post198168_fourstat_jpeg
[...]
Why is there a suffix "jpeg"?
Read the mentioned forum post: viewtopic.php?p=198168#p198168
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

Post Reply