Search found 1 match

by vural
November 10th, 2017, 10:56 pm
Forum: Scripts
Topic: Python random library for a new rule
Replies: 0
Views: 3775

Python random library for a new rule

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