~dhogan/firefly

ref: b6b4f8aa3881408dc2114319b5d620e12f2122c6 firefly/generators/glider.py -rwxr-xr-x 464 bytes
b6b4f8aa — Daniel Hogan add more gliders 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

from common import *

frames = 160

seed = numpy.array([
[1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0],
[1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0],
[1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0],
[0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0],
[0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
])

life(seed, True, frames, base_name)