I was feeling a bit restless yesterday, so I decided to see if I couldn’t get a first
approximation of Conway’s Life cellular automaton up and running on Windows Phone. I gave myself 1 hour to do it. It came out okay, and today I submitted it to App Hub (I’ll let you know if it gets published) as a free app.
The premise of Conway’s “game” is to create a world in a grid. You seed the grid either at particular locations, or as I did, randomly. You then proceed in generations.
Each generation you look at the existing cells which are deemed to be alive (red) or dead (black). Alive cells that have fewer than 2 neighbors die of loneliness and are dead in the next generation. Similarly, alive cells with 4 or more of the possible 8 neighbors, die of overcrowding. Live cells with 2 or 3 neighbors live on to the next generation. Finally, dead cells with exactly three neighbors come to life in the next generation.
Continue reading →