Re: you shortened it, but you broke it too... ;-)

2018-01-01 Thread Ned Batchelder
On 12/31/17 8:15 PM, Wu Xi wrote: def neighbours(point): x,y = point yield x + 1 , y yield x - 1 , y yield x , y + 1 yield x , y - 1 #this is proof that life can emerge inside of computers and cellular automatons, yield x + 1 , y + 1

you shortened it, but you broke it too... ;-)

2017-12-31 Thread Wu Xi
import time , itertools __doc__=" Mr Conway_s Game Of Life simulation in python 2 and 3 " width = 100 ; height = 50# size of life habitat , e.g. a simulated meteorite, bolide , etc. vmap = [['D' for w in range(width)] for h in range(height)] # D = Dead at first def neighbo