Skip to content

Commit a5948bf

Browse files
New Life patterns. Close #3.
1 parent 3fb8085 commit a5948bf

File tree

6 files changed

+49
-6
lines changed

6 files changed

+49
-6
lines changed

data.lua

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
data{
3-
file = {"pentaDecathlon.life"},
3+
file = "pentaDecathlon.life",
44
summary = "Pentadecathlon (or PD) is a period 15 oscillator that was found in 1970 by John Conway while tracking the history of short rows of cells (see one cell thick pattern).",
55
source = "http://www.conwaylife.com/wiki/Pentadecathlon"
66
}
77

88
data{
99
file = "rPentomino.life",
10-
summary = "The R-pentomino is a methuselah that was found by John Conway in 1970.[1] It is by far the most active polyomino with fewer than six cells; all of the others stabilize in at most 10 generations, but the R-pentomino does not do so until generation 1103, by which time it has a population of 116. ",
10+
summary = "The R-pentomino is a methuselah that was found by John Conway in 1970. It is by far the most active polyomino with fewer than six cells; all of the others stabilize in at most 10 generations, but the R-pentomino does not do so until generation 1103, by which time it has a population of 116. ",
1111
source = "http://www.conwaylife.com/wiki/R-pentomino"
1212
}
1313

@@ -53,3 +53,28 @@ data{
5353
source = "http://www.conwaylife.com/wiki/Pulsar"
5454
}
5555

56+
data{
57+
file = "bookend.life",
58+
summary = "Bookend (or hook) is generation 1 of century and an induction coil.",
59+
source = "http://www.conwaylife.com/wiki/Bookend"
60+
}
61+
62+
data{
63+
file = "blocker.life",
64+
summary = "Blocker is a period 8 oscillator found by Robert Wainwright.",
65+
source = "http://www.conwaylife.com/wiki/Blocker"
66+
}
67+
68+
69+
data{
70+
file = "boatTie.life",
71+
summary = "Boat-tie (or bi-boat) is a small still life whose name is a pun on 'bow tie'. It is the twentieth most common still life, being less common than Integral sign but more common than snake.",
72+
source = "http://www.conwaylife.com/wiki/Boat-tie"
73+
}
74+
75+
data{
76+
file = "25P3H1.life",
77+
summary = "25P3H1V0.2 is an unnamed c/3 orthogonal spaceship discovered by Dean Hickerson in August 1989 and was the first c/3 spaceship to be discovered. In terms of its 25 cells, it is tied with 25P3H1V0.1 as the smallest c/3 spaceship, although unlike 25P3H1V0.1, it has a population of 25 in all of its phases, as well as a smaller bounding box.",
78+
source = "http://www.conwaylife.com/wiki/25P3H1V0.2"
79+
}
80+

data/25P3H1.life

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
XX X
2+
XX X XX XXX
3+
XXXX XX X
4+
X X X XX
5+
XX

data/blocker.life

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
X X
2+
X
3+
XX X X
4+
XX X X XX
5+
XX

data/boatTie.life

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
X
2+
X X
3+
XX
4+
XX
5+
X X
6+
X

data/bookend.life

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
XX
2+
X X
3+
XXX

lua/Life.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ patterns.default = "random"
1717
-- @arg data.dim A number with the x and y size of space.
1818
-- @arg data.pattern A set of available patterns to be used as
1919
-- initial state for the cellular automata.
20-
-- The available patterns are "random", "rabbits", "heavySpaceship",
21-
-- "dinnerTable", "rpentomino", "pentaDecathlon", "octagon",
22-
-- "figureEight", "pulsar", "glider", "brianOsc". The default is
23-
-- random, with half alive cells randomly distributed in space.
20+
-- The available patterns are described in the data available in the package.
21+
-- They should be used without ".life" extension. The default pattern is
22+
-- "random", with half alive cells randomly distributed in space.
2423
Life = CellularAutomataModel{
2524
finalTime = 100,
2625
dim = 30,

0 commit comments

Comments
 (0)