Re: Conway's game of Life, just because.

2020-04-28 Thread ast
Le 07/05/2019 à 05:31, Paul Rubin a écrit : #!/usr/bin/python3 from itertools import chain def adjacents(cell):# generate coordinates of cell neighbors x, y = cell # a cell is just an x,y coordinate pair return ((x+i,y+j) for i in [-1,0,1] for j in [-1,0,1]

Re: Conway's game of Life, just because.

2019-05-08 Thread songbird
Paul Moore wrote: > Golly supports both bounded and > unbounded universes. I don't know how it does it, and (obviously) it > will hit limits *somewhere*, but I consider support of unbounded > universes to mean that any failure modes will not be attributable to >

Re: Conway's game of Life, just because.

2019-05-08 Thread Paul Moore
Golly supports both bounded and unbounded universes. I don't know how it does it, and (obviously) it will hit limits *somewhere*, but I consider support of unbounded universes to mean that any failure modes will not be attributable to limits on the value of

Re: Conway's game of Life, just because.

2019-05-08 Thread Richard Damon
On 5/8/19 4:26 AM, Paul Moore wrote: > On Wed, 8 May 2019 at 03:39, Richard Damon wrote: >> My experience is that the wrap around is common, as otherwise the hard >> edge causes a discontinuity in the rules at the edge, so any pattern >> that reaches the edge no longer has a valid result. The

Re: Conway's game of Life, just because.

2019-05-08 Thread Paul Moore
On Wed, 8 May 2019 at 03:39, Richard Damon wrote: > My experience is that the wrap around is common, as otherwise the hard > edge causes a discontinuity in the rules at the edge, so any pattern > that reaches the edge no longer has a valid result. The torus effect > still perturbs the result, but

Re: Conway's game of Life, just because.

2019-05-07 Thread Richard Damon
On 5/7/19 9:33 PM, Ian Kelly wrote: > On Tue, May 7, 2019 at 1:00 PM MRAB wrote: >> On 2019-05-07 19:29, Eli the Bearded wrote: >>> In comp.lang.python, Paul Rubin wrote: >>> >>> Elijah >>> -- >>> is the torus game board unintentional? >>> >> I've never seen a version of Conway's Game of

Re: Conway's game of Life, just because.

2019-05-07 Thread Ian Kelly
On Tue, May 7, 2019 at 1:00 PM MRAB wrote: > > On 2019-05-07 19:29, Eli the Bearded wrote: > > In comp.lang.python, Paul Rubin wrote: > > > > Thanks for posting this. I'm learning python and am very familiar with > > this "game". > > > >> #!/usr/bin/python3 > >> from itertools import chain > >>

Re: Conway's game of Life, just because.

2019-05-07 Thread Eli the Bearded
In comp.lang.python, MRAB wrote: > I've never seen a version of Conway's Game of Life where the board > doesn't wrap around. The one I wrote in vi macros doesn't. It's a design choice you can make. (Thanks for the explainations everyone.) Elijah -- the vi macro one is included in the vim

Re: Conway's game of Life, just because.

2019-05-07 Thread MRAB
On 2019-05-07 19:29, Eli the Bearded wrote: In comp.lang.python, Paul Rubin wrote: Thanks for posting this. I'm learning python and am very familiar with this "game". #!/usr/bin/python3 from itertools import chain def adjacents(cell):# generate coordinates of cell neighbors

Re: Conway's game of Life, just because.

2019-05-07 Thread Chris Angelico
On Wed, May 8, 2019 at 4:31 AM Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, Paul Rubin wrote: > > Thanks for posting this. I'm learning python and am very familiar with > this "game". > > > #!/usr/bin/python3 > > from itertools import chain > > > > def adjacents(cell):

Re: Conway's game of Life, just because.

2019-05-07 Thread Eli the Bearded
In comp.lang.python, Paul Rubin wrote: Thanks for posting this. I'm learning python and am very familiar with this "game". > #!/usr/bin/python3 > from itertools import chain > > def adjacents(cell):# generate coordinates of cell neighbors > x, y = cell # a cell