ConwayLife.com - A community for Conway's Game of Life and related cellular automata
Home  •  LifeWiki  •  Forums  •  Download Golly

Python random library for a new rule

For scripts to aid with computation or simulation in cellular automata.

Python random library for a new rule

Postby 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
vural
 
Posts: 1
Joined: November 10th, 2017, 10:47 pm

Return to Scripts

Who is online

Users browsing this forum: No registered users and 2 guests