r
/
fifth
1
Fork 0
fifth/examples/life.py

20 lines
347 B
Python
Raw Normal View History

2015-06-01 12:45:23 +00:00
"""
B3/S23: Game of Life
2015-06-01 12:45:23 +00:00
@author: jrpotter
@date: June 01, 2015
"""
2015-06-01 00:58:09 +00:00
if __name__ == '__main__':
2015-06-01 12:45:23 +00:00
import os, sys
sys.path.append(os.path.abspath('src'))
import cam
import cam_parser
2015-06-01 12:45:23 +00:00
c = cam.CAM(1, 100, 2)
p = cam_parser.CAMParser('B3/S23', c)
2015-06-21 01:05:55 +00:00
c.randomize()
c.start(cam.CAM.Show.WINDOW, clock=50, rules=p.ruleset)