Python random library for a new rule

For scripts to aid with computation or simulation in cellular automata.
Post Reply
vural
Posts: 1
Joined: November 10th, 2017, 10:47 pm

Python random library for a new rule

Post by vural » November 10th, 2017, 10:56 pm

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

Post Reply