def complex(moore=[0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0], history = -1.0, potential = 0.005, denom = False, ): return rule('complex', moore=moore, history=history, potential=potential, denom=denom)
def mean(moore=[0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125], history = 0.0, damping = 0.0, heat = 0, min = -1000, max = +1000, under = -1000, over = +1000 ): return rule('water', moore=moore, history=history, damping=damping, heat=heat, min=min, max=max, under=under, over=over)
def water(moore=[0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0], history = -1.0, damping = 0.005, heat = 0, min = 0.0, max = 255.9, under = 0.0, over = 255.9 ): return rule('water', moore=moore, history=history, damping=damping, heat=heat, min=min, max=max, under=under, over=over)
def redox( activation = {1: {(-1,-1): (0, 1), (-1, 0): (0, 1), (-1, 1): (0, 1), ( 0,-1): (0, 1), ( 0, 0): (1, 0), ( 0, 1): (0, 1), ( 1,-1): (0, 1), ( 1, 0): (0, 1), ( 1, 1): (0, 1), }}, reduction = [[0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0]], quiescent = 0 ): return rule('redox', activation=activation, reduction=reduction, quiescent=quiescent)
def banks(birth = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1], survival = [1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], decay = 0): return rule('banks', birth=birth, survival=survival, decay=decay)
def brain(birth = [2], survival = [], decay = 1): return rule('brain', birth=birth, survival=survival, decay=decay)
def life(birth = [3], survival = [2,3]): return rule('life', birth=birth, survival=survival)
def rivers(): return rule('rivers')