From: James Edward Gray II Date: 2007-08-14T09:40:56+09:00 Subject: Re: Cellular Automata (#134) On Aug 13, 2007, at 6:24 PM, Alpha Chen wrote: > On Aug 13, 3:12 pm, James Edward Gray II > wrote: >> I believe your code is correct and mine makes the same mistake as >> alpha.chen's code. > > Forgive me for being dense, but I can't seem to figure out what the > mistake is. When I do it by hand, I get the same result as when I run > the script: > > 145 = 10010001b > > [0 0]1[0 0] > [0 0]0 0 1[0 0] > 1 1 0 0 1 For any rules with a 1 in the final bit position, the edges should basically be an infinite strand of on cells. Remember, any cell that's not on is off, so you technically start with: ...00000000000000000000100000000000000000000... All of those 000 neighborhoods turn cells on. James Edward Gray II