2015-06-01 12:45:23 +00:00
|
|
|
"""
|
2015-06-04 18:16:25 +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
|
2015-06-04 18:16:25 +00:00
|
|
|
import util as u
|
2015-06-01 12:45:23 +00:00
|
|
|
import ruleset as rs
|
|
|
|
|
2015-06-02 20:35:16 +00:00
|
|
|
c = cam.CAM(1, 100, 2)
|
2015-06-04 18:16:25 +00:00
|
|
|
p = u.CAMParser('B3/S23', c)
|
2015-06-02 20:35:16 +00:00
|
|
|
|
2015-06-04 18:16:25 +00:00
|
|
|
c.randomize()
|
2015-06-04 19:54:31 +00:00
|
|
|
c.start_plot(200, p.ruleset)
|