[comp.sys.mac.programmer] Need 'Game-of-Life' algor

Philip.Craig@p27.f22.n282.z1.FIDONET.ORG (Philip Craig) (02/16/90)

In a message to All [15 Feb 90 06:56:00] Rob Mitchell wrote:

 >        I'm writing an application that requires some sort of moving
 > graphics picture to move on the screen, so I thought of using the
 > Game-of-Life.  I wrote it in undergrad school, but I don't remember
 > the algorithm or the rules (2 neighbors - born; 3,4,5 neighbors -
 > live; 6,7,8 neighbors - die.  Something like that).

Try: 2,3 neighbours - live; 3 neighbours - born;
1,4,5,6,8 neighbours - die.

--  
Philip Craig - via FidoNet node 1:282/33
UUCP: ...!uunet!imagery!22.27!Philip.Craig
ARPA: Philip.Craig@p27.f22.n282.z1.FIDONET.ORG