Subject: Re: [stella] And now, for my next trick... From: "Andrew Davie" <adavie@xxxxxxxxxxxxx> Date: Fri, 9 Mar 2001 12:22:40 +1100 |
> Don't forget that you also need to store TWO copies of the grid at all > times... the current grid, and the next-generation grid. If you just use > one, the pattern smears in the direction of your update algo, and it doesn't > work right. I dispute the above assertion. As long as you keep the a couple of lines intact (ie: buffered), and work downwards.... I don't see any reason why one copy of the grid won't work. In fact, I'm sure it will. Grab a line, check above.. (using the buffered line), check below, etc.... when you've calculated your new line... write the buffered line to the grid, copy the new line to the buffer, and proceed to do the next line. The algorithm would never see the 'new' grid, it would always be working with the 'old' one. Cheers A -- _ _ _| _ _ _| _ * _ _ , (_|| )(_|( (/_\/\/ (_|(_|\/(_(/_ ,~' L_|\ ,-' \ see my Museum of Soviet Calculators at ( \ http://www.taswegian.com/MOSCOW/soviet.html \ __ / L,~' "\__/ @--> v ----- Original Message ----- From: "Clay Halliwell" <clay.h@xxxxxxx> To: <stella@xxxxxxxxxxx> Sent: Friday, March 09, 2001 12:07 PM Subject: Re: [stella] And now, for my next trick... > From: "Andrew Davie" <adavie@xxxxxxxxxxxxx> > To: <stella@xxxxxxxxxxx> > Sent: Thursday, March 08, 2001 6:12 AM > Subject: [stella] And now, for my next trick... > > > b) Life on Mars. An implementation of John Conway's life (in at least a > > 32x32 - or possibly up to 40 x 64 - grid). All in orangy/red colours, > and > > Don't forget that you also need to store TWO copies of the grid at all > times... the current grid, and the next-generation grid. If you just use > one, the pattern smears in the direction of your update algo, and it doesn't > work right. > > -- > Clay Halliwell | ATARI XL/XE DO + THE > clay.FAKEMEAT.h@xxxxxxx | 8 - B I T S -------- > e.halliwell@xxxxxxxxx | /////////// M A T H > Keeper of the Atari Jaguar Cheats and Codes FAQ. Request your copy today! > Editor, Jaguar Explorer Online - More Jaguar News Than Should Be Allowed! > http://www.atarihq.com/jeo/ "Where do you want to play Atari today?" > > > > - > Archives (includes files) at http://www.biglist.com/lists/stella/archives/ > Unsub & more at http://www.biglist.com/lists/stella/ > - Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] And now, for my next t, Clay Halliwell | Thread | Re: [stella] And now, for my next t, Russ Perry Jr |
Re: [stella] And now, for my next t, Clay Halliwell | Date | Re: [stella] And now, for my next t, Ghislain |
Month |