Page 1 of 1

Python random library for a new rule

Posted: November 10th, 2017, 10:56 pm
by vural
I just wonder that how can I make a probabilistic rule on Golly by editing makeruletree.py or is there any script about this?:


definition=[NW,S,N,C,W,E,SE]

i=np.random.choice(definiton, 1 , p=[0.166, 0.166, 0.166, 0.166, 0.166, 0.166])



if C==0 and nc=6:

return i