What's the Game of Life?

What's the Game of Life?

March 6, 2014

In this tutorial you are going to familiarize yourself with Objective-C and a game development tool called SpriteBuilder by making a mobile version of Conway's Game of Life. If you've never heard of Conway's Game of Life, Wikipedia has a great article. Nearly every programmer has written a version of this game at some point in their careers and wasted lots of time staring at cool shapes morphing. Consider this your initiation :p


There is a grid of cells. A cell is either alive or dead. If a cell has less than two live neighbors, it dies. If it has more than three neighbors, it dies. If a live cell has exactly two or three neighbors, it stays alive and if a dead cell has exactly three neighbors, it comes to life. The Wikipedia article has some great examples of common patterns that produce cool effects.

You can check out this online implementation of the Game of Life to get a feel for how it works.

Try placing a few live cells and then hitting the next button to run one round. Press the Animate button to continuously run the game, or use Step to increment one round at a time. Play around with it a little and come back when you're ready. We'll wait :)


If you have feedback on this tutorial or find any mistakes, please open issues on the GitHub Repository.

Join Make School Icon

Join Make School

Prepare for your career as a founder or software developer

Apply now
Talk to Us Icon

Talk to Us

If you have any questions, please send us an email.

Email Us