r
/
fifth
1
Fork 0

Setup life from directory

master
jrpotter 2015-06-01 08:45:23 -04:00
parent 0236418ef1
commit 0c344b23dc
2 changed files with 13 additions and 3 deletions

0
examples/__init__.py Normal file
View File

View File

@ -1,6 +1,8 @@
import cam """
import ruleset as rs
import neighborhood as nh @author: jrpotter
@date: June 01, 2015
"""
def game_of_life(coordinate, grid, neighbors): def game_of_life(coordinate, grid, neighbors):
""" """
@ -21,6 +23,14 @@ def game_of_life(coordinate, grid, neighbors):
return False return False
if __name__ == '__main__': if __name__ == '__main__':
import os, sys
sys.path.append(os.path.abspath('src'))
import cam
import ruleset as rs
import neighborhood as nh
c = cam.CAM(1, (100, 100)) c = cam.CAM(1, (100, 100))
c.randomize() c.randomize()
r = rs.Ruleset(rs.Rule.SATISFY) r = rs.Ruleset(rs.Rule.SATISFY)