Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or wiki function.
muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 20th, 2020, 6:32 am

...and now the x/1 bug seems to be back. This really doesn't sound fun to fix.

Code: Select all

 x = 20, y = 11, rule = B2cei3aiq4jyz5ejr6ai78/S12ei3jn4anwz5q
3$2bo5bobo$3bo4bo2bo$2bo5bo2bo$bo5bobo!
(also I added an isotropic non-totalistic alias to that merge request, can it be added?)

Will the main lifeviewer page ever be updated to the latest version? If so, then it could be added to the ipad home screen, effectively working as an actual app and hopefully avoiding all of the stupid bugs ios and safari bring to the browser version.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 20th, 2020, 12:24 pm

Here's a rather major suggestion since I haven't posted one in a while: since we have an option for identifying patterns, why not a similar function for identifying properties of rules? It could display the following:

- Rulespace
- Number of states
- Can a pattern escape its bounding box?
- Can a pattern escape its bounding diamond?
- Does this rule preserve D8_2 symmetry (bilateral rule)?
- Does this rule preserve any form of gutter symmetry (orthogonal gutter, orthogonal skewgutter, orthogonal double skewgutter, diagonal gutter, diagonal skewgutter)?
- Will patterns made up solely of a configuration of 2x2 patterns stay made of those 2x2 patterns, simulating a margolus rule?
- What is this rule's black-white reversal?
- (for black white symmetric rules) What is this rule's strobing equivalent?
- Is this rule reversible?
- Does this rule conserve population?

I can provide several transitions for certain cases of these which can be used for checking the rulestring against to see if it falls into any of these categories.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 21st, 2020, 5:47 pm

Build 500 is now live on the Forums and LifeWiki

Please note: you will need to refresh your browser to use the new build (Ctrl-F5 on Chrome)

Enhancements since the last released build:
  • Identify
    • added Close button
    • simplify oblique speeds
  • Editor
    • new UI buttons in Select mode to nudge selected cells one cell up, down, left or right
    • can also use hotkeys Alt+Up, Alt+Down, Alt+Left and Alt+Right
    • Selection action buttons now hide when no selection active (rather than gray out)
  • search for hex neighbourhood definition for @TREE rules
  • Generations AutoFit now includes Dying cell states
  • hotkey Ctrl+Alt+Z randomizes the pattern without changing the rule
  • added more aliases
Fixes since the last released build:
  • fixed Fit Zoom for triangular grid
  • fixed several Slope display issues
  • fixed Paste Mode UI
The updated hotkey map detailing the LifeViewer keyboard controls is here.

Comments, feedback, suggestions and bug reports welcome!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 21st, 2020, 5:56 pm

Congratulations on reaching build 500!

Code: Select all

 x = 23, y = 14, rule = MargSingRot
12b2obo$8bo8bo4bo$3bobo4bobobo2bobo$10bo$o4bo3bobo9b2o$2bob2o6b2obo3bo
$3bo4bo$6bobobo3bo5bo$7bo3bo3b5obo$7bo2bo5bo3bo$18bo$8bo5bo2$8b2o4b2o!
[[ STOP 20 THEME Blues ]]
(Something I discovered: using the nudge option on a fully selected pattern seems to erase the entire pattern)
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 21st, 2020, 6:00 pm

muzik wrote:
January 21st, 2020, 5:56 pm
using the nudge option on a fully selected pattern seems to erase the entire pattern
If the pattern gets too close to the grid boundary then it will be deleted.

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 21st, 2020, 8:27 pm

It means I can't attempt to correct patterns like this though:
Gamedziner wrote:
May 2nd, 2019, 7:35 am

Code: Select all

x = 23, y = 4, rule = B02/S01LE
14bobo$bobo7bob5o3bo$bo9bob5o2bobo$14bobo!
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 22nd, 2020, 2:17 am

muzik wrote:
January 21st, 2020, 8:27 pm
It means I can't attempt to correct patterns like this though
I don't understand. What are you trying to do and what happens?

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 22nd, 2020, 9:27 am

rowett wrote:
January 22nd, 2020, 2:17 am
muzik wrote:
January 21st, 2020, 8:27 pm
It means I can't attempt to correct patterns like this though
I don't understand. What are you trying to do and what happens?
Attempting to select the entire pattern and then shift the pattern by one cell to see if it works. Although by manual reconstruction elsewhere it still doesn't seem to work, so it seems the pattern is at fault here instead of the viewer.

Can the nudge buttons still be made to work if nothing is actually selected, and affecting the entire pattern in such cases? (Same for the clear history states button as well, preferably)

EDIT: Another thing that could be added (if not already) would be a temporal equivalent of the nudge buttons - essentially, "advance all the cells in the entire pattern except for what is selected", which would be useful for patterns in B0 or alternating rules posted in the incorrect phase.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

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

Re: Pattern viewer for forum threads

Post by dvgrn » January 22nd, 2020, 10:34 am

muzik wrote:
January 22nd, 2020, 9:27 am
EDIT: Another thing that could be added (if not already) would be a temporal equivalent of the nudge buttons - essentially, "advance all the cells in the entire pattern except for what is selected", which would be useful for patterns in B0 or alternating rules posted in the incorrect phase.
Chris seems to have jumped into his time machine and implemented that, quite a while ago -- Shift+Space for "advance outside", Ctrl+Space for "advance selection", same as in Golly.

There seems to be a bug in the Ctrl+Space functionality, though -- the selected area jumps downward a sizable distance, and once the selection is cleared, the evolved pattern overlays whatever is down there.

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 22nd, 2020, 10:58 am

dvgrn wrote:
January 22nd, 2020, 10:34 am
There seems to be a bug in the Ctrl+Space functionality, though -- the selected area jumps downward a sizable distance, and once the selection is cleared, the evolved pattern overlays whatever is down there.
Ctrl+Space is still "experimental" (aka I didn't get round to finishing it before something more interesting came along).

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 22nd, 2020, 11:49 am

Is this what the advance colour option was referring to? I've seen the advance colour option but have never actually seen what it's been used for.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 22nd, 2020, 12:05 pm

muzik wrote:
January 22nd, 2020, 11:49 am
Is this what the advance colour option was referring to? I've seen the advance colour option but have never actually seen what it's been used for.
Yes

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 22nd, 2020, 12:25 pm

New non-isotropic alias MovingStrings: ARH+/wMT//8BEf7/AxP//wER/v8DE///AREAAAMTAAABEf7/AxP//wER/v8DE///AREAAAMTAAABEQAAAxMAAA

(from here: viewtopic.php?f=11&t=821)


ALso, multistate patterns with no specified colours still seem to use pure black for the background instead of grey like golly does, is this intended?
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 22nd, 2020, 12:47 pm

muzik wrote:
January 22nd, 2020, 12:25 pm
New non-isotropic alias MovingStrings
Thanks, added.
muzik wrote:
January 22nd, 2020, 12:25 pm
ALso, multistate patterns with no specified colours still seem to use pure black for the background instead of grey like golly does, is this intended?
Yes: LING

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 22nd, 2020, 6:14 pm

I tried creating a WolframAlpha theme. However, it seems as though the individual cell colours change somewhat unpredictably as the amount of cell states increase, so I'm not sure if we can closely enough approximate the cell colours with a gradient as to not have to specify a new palette for every cell count. Here's from k=3 to k=11 (k=2 is basically just inverse theme, but with 128 128 128 grid):

Code: Select all

 x = 4, y = 4, rule = 23/3/3
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 COLOR 0 255 226 130 COLOR 1 245 183 110 COLOR 2 230 130 107 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/4
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 COLOR 0 255 226 130 COLOR 1 245 183 110 COLOR 2 230 130 107 COLOR 3 225 206 169 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/5
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 
COLOR GRID 128 128 128 
GRIDMAJOR 0 
COLOR 0 255 226 130 
COLOR 1 245 183 110 
COLOR 2 230 130 107 
COLOR 3 225 206 169
COLOR 4 177 208 137 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/6
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 
COLOR 0 255 226 130 
COLOR 1 245 183 110 
COLOR 2 230 130 107 
COLOR 3 225 206 169
COLOR 4 177 208 137
COLOR 5 172 208 203 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/7
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 
COLOR 0 255 226 130 
COLOR 1 247 190 113
COLOR 2 235 147 108
COLOR 3 228 168 138
COLOR 4 209 207 158
COLOR 5 176 208 148
COLOR 6 172 208 203 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/8
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 
COLOR 0 255 226 130
COLOR 1 248 195 115
COLOR 2 239 160 109
COLOR 3 229 141 116
COLOR 4 226 195 160
COLOR 5 198 207 151
COLOR 6 176 208 156
COLOR 7 172 208 203 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/9
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 
COLOR 0 255 226 130
COLOR 1 249 199 117
COLOR 2 241 170 109
COLOR 3 232 136 108
COLOR 4 228 168 138
COLOR 5 219 206 165
COLOR 6 189 208 145
COLOR 7 175 208 162
COLOR 8 172 208 203 ]]

Code: Select all

 x = 4, y = 4, rule = 23/3/10
2A$A$3.A$2.2A!
[[ HISTORYSTATES 0 COLOR GRID 128 128 128 GRIDMAJOR 0 
COLOR 0 255 226 130
COLOR 1 250 202 119
COLOR 2 243 177 109
COLOR 3 235 147 108
COLOR 4 229 147 121
COLOR 5 226 189 155
COLOR 6 209 207 158
COLOR 7 182 208 140
COLOR 8 175 208 166
COLOR 9 172 208 203 ]]

Code: Select all

 x = 10, y = 12, rule = 23/3/11
$5.A$4.ABA$3.A3BA$3.BEGEA$2.C2EH2A$3.D2.G$2.G$3.H$4.I!
[[ COLOR GRID 128 128 128 COLOR DEAD 255 226 130 COLOR 0 255 226 130 COLOR 1 250 204 120 COLOR 2 245 183 110 COLOR 3 238 156 108 COLOR 4 230 130 107 COLOR 5 228 168 138 COLOR 6 225 206 169 COLOR 7 201 207 153 COLOR 8 177 208 137 COLOR 9 175 208 170 COLOR 10 172 208 203 ]]
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 23rd, 2020, 5:07 am

These should both contain the same pattern but try pasting them into the viewer.html box and see what happens:

Code: Select all

 x = 9, y = 5, rule = LifeHistory
$bo3b3o$b3o2bo$2bo!

Code: Select all

 x = 9, y = 5, rule = R1,C2,M0,S2..3,B3..3,NMHistory
$bo3b3o$b3o2bo$2bo!
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 23rd, 2020, 7:12 am

muzik wrote:
January 23rd, 2020, 5:07 am
These should both contain the same pattern but try pasting them into the viewer.html box and see what happens
The error message is correct. [R]History is not supported with LtL/HROT.

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 23rd, 2020, 7:15 am

rowett wrote:
January 23rd, 2020, 7:12 am
muzik wrote:
January 23rd, 2020, 5:07 am
These should both contain the same pattern but try pasting them into the viewer.html box and see what happens
The error message is correct. [R]History is not supported with LtL/HROT.
The patterns should be the same though, but they're not.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 23rd, 2020, 3:25 pm

Is it meant to be possible to draw through the identify window?
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 23rd, 2020, 3:54 pm

muzik wrote:
January 23rd, 2020, 3:25 pm
Is it meant to be possible to draw through the identify window?
Yes

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 23rd, 2020, 7:43 pm

Identify considers the ant on the torus a spaceship:

Code: Select all

x = 4, y = 4, rule = B3/S23:T0,5
o2bo$o2bo$b2o$b2o!
Really not sure if this is intended behaviour as it isn't considered a spaceship under the majority of circumstances.

For these toroidal cases it might end up being better to have an option to calculate the overall period of the pattern instead, with it all considered a stationary oscillator or agar. For example, instead of being identified as a spaceship, the following pattern would be identified as a p3596 oscillator:

Code: Select all

 x = 29, y = 31, rule = B3/S23:T29,31
11$14bo$14bobo$14b2o!
Another thing I've had on mind recently: there may end up being ruletables on the wiki which share names with rule aliases. Could there be an option somewhere that switches between the ruleloader algorithm and the normal algorithm so that the ruletable on the wiki is used to run the pattern instead?
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 24th, 2020, 9:34 am

Identify simplifies this to c/1 instead of c:

Code: Select all

 x = 2, y = 3, rule = B2a3n/S
o2$2o!
Compare:

Code: Select all

 x = 2, y = 3, rule = B2a3r/S
o2$2o!
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 25th, 2020, 11:56 am

How can LifeViewer be made to run ruletables when embedded on an external site? On Catagolue, patterns throw up an error and cannot be run, whereas the exact same rule can be run on conwaylife.com with otherwise no problem:

Code: Select all

x = 4, y = 5, rule = SlowLife
b2o$3o$2obo$b3o$2bo!
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » January 25th, 2020, 12:26 pm

muzik wrote:
January 25th, 2020, 11:56 am
How can LifeViewer be made to run ruletables when embedded on an external site?
Adam will need a local repository with the rules and then tell LifeViewer where they are:
viewtopic.php?f=3&t=1622&start=1300#p85617

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » January 25th, 2020, 1:18 pm

rowett wrote:
January 25th, 2020, 12:26 pm
muzik wrote:
January 25th, 2020, 11:56 am
How can LifeViewer be made to run ruletables when embedded on an external site?
Adam will need a local repository with the rules and then tell LifeViewer where they are:
viewtopic.php?f=3&t=1622&start=1300#p85617
I've went ahead and opened up an issue ticket at the catagolue gitlab page, so let me know if I phrased anything incorrectly or missed anything important out.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

Post Reply