Skip to content

Commit fb5739b

Browse files
Small updates.
1 parent 6cdf297 commit fb5739b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/snow.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import("ca")
55

66
DIM = 50
7-
FINAL = 300
7+
FINAL = 600
88
PROB = 0.02
99

1010
Snow = CellularAutomataModel{

lua/Life.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Life = CellularAutomataModel{
6161
customError("CellularSpace should have dim at least "..pattern.ydim..".")
6262
end
6363

64-
insertPattern(cs, pattern, 0, 0)
64+
insertPattern(cs, pattern, 10, 10)
6565
end
6666

6767
cs:createNeighborhood{wrap = true}

lua/LifePatterns.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ function brianOsc()
2727
cs:get(1, 2).state = "alive"
2828
cs:get(2, 1).state = "alive"
2929
cs:get(2, 2).state = "alive"
30-
cs:get(1, 0).state = DYING
31-
cs:get(0, 2).state = DYING
32-
cs:get(2, 3).state = DYING
33-
cs:get(3, 1).state = DYING
30+
cs:get(1, 0).state = "alive"
31+
cs:get(0, 2).state = "alive"
32+
cs:get(2, 3).state = "alive"
33+
cs:get(3, 1).state = "alive"
3434

3535
return cs
3636
end

0 commit comments

Comments
 (0)