Liquid Egg Product
The Shawn Bradley of Weblogs
"To start, [I've worked] 10 out of 11 days. This takes energy! It also vastly simplifies my social arena..."
-- David K

The Game of Life

Probably a fair portion of you have heard the name John Conway in conjunction with a game called Life. It’s amazing how the few simple rules can generate tons of interest, research, and analysis.

Playing Life:

This isn’t a game where you take turns to try to obtain an objective; think of it more as a simulator. You start with a grid of cells, a universe (really small for this example). Fill in the cells however you wish. Empty cells are dead, while the grey cells are alive:

Life, turn 0
A game of Life, turn 0

Each cell has eight neighbor cells surrounding it. The following rules determine whether a cell will be alive on the following turn:

  1. A dead cell with 3 living neighbors gains life.
  2. A live cell has 2 or 3 living neighbors stays alive.
  3. A live cell with 0 or 1 living neighbors dies of loneliness.
  4. A live cell with 4 or more living neighbors dies of overcrowding.

So taking our starting position above:

Life, turn 1
What will happen for turn 1?

The green cells are dead cells that will live next turn, and the red cells will be killed.

The next few turns you can see here:

Life, turn 2 Life, turn 3 Life, turn 4

It’s still far from certain what the fate of this universe will be. Sometimes, all the cells will eventually die. Othertimes, the universe will remain stable, or continually expand. There’s no good way to predict how it will end up for an arbitrary starting position.

Another complexity is how we treat the edges of the universe. You could have the universe “wrap around”, so the cells on the far left and far right edges (as well as top and bottom) would actually be neighbors.

I could hack up a basic implementation of Life pretty quickly, but it’s been done so many times, I’ll just link you Johan Bontes’ program. According to the website it’s an awesome program (plus it’s free).

Or, if you have time and graph paper, I suppose you could do it by hand.

September 15th, 2007 5 comments
Posted by Donnie Filed under Mathematics

  1. chessloser posted the following on 15 September 2007 at 1:04 pm.

    i played that game for days about 10 years ago, drove me nuts. an excellent time waster. i totally forgot about it, thanks for reminding me. i can also now thank you for enabling me, cause i’m gonna lose many hours now playing that game…

        Reply to chessloser
  2. chessloser posted the following on 15 September 2007 at 1:04 pm.

    i should really edit before i hit “submit commment.”

        Reply to chessloser
  3. Donnie posted the following on 16 September 2007 at 1:28 am.

    You’re welcome. Know how you feel; it’ll probably be a distraction for me on Sunday when I need to finish some work. And don’t worry, I took the liberty of correcting the misspelling.

        Reply to Donnie
  4. annie posted the following on 16 September 2007 at 1:49 pm.

    Too hard. what about dumb people like me? i prefer monopoly.

        Reply to annie
  5. Donnie posted the following on 17 September 2007 at 10:19 am.

    Monopoly! Have you ever actually finished a game? I’m used to stopping before the endgame’s resolved just because takes so long (ironically, the only 2 games of Axis and Allies I’ve played were played to completion).

    If you’re dumb (a premise I don’t accept), then we have a lot of dumb-squared and dumb-cubed people running around. You can handle Monopoly, and you can surely handle this–Life has a lot fewer rules. It’s just a lot more tedious (done by hand).

        Reply to Donnie

Leave a reply