Product College starts on September 5. Submit your application today. Apply now.

What You Learned

What You Learned

April 12, 2017
Expand

Project: Learn to buid Conway's Game of Life with SpriteKit and Swift 3

Congrats again on finishing Game of Life and building another great iPhone game!

Let's take a look at what you have learned.

The game

What you learned

  • The Grid Class: Sub classing SKSpriteNode and built a self contained simulation node.

  • Creature generator: Adding methods to spawn creatures at a give grid position and automate this to produce creatures at every entry in the grid.

  • Touch input: Translating user touch into grid row / column position.

  • 2D arrays: Creation and manipulation of 2D array. Implementing functionality to traverse all neighbors of a specified cell to calculate neighborCount

  • Build a scheduler: Using SKActions to build a simulation scheduler allowing you to automate the running of the simulation.

  • Game of Life ruleset: Translating the Game of Life ruleset into code logic.

Solution

Download the Game of Life solution.

GitHub Cat

Feedback

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

Summer academy

An iOS Development Summer Course

Design, code and launch your own app. Locations across the USA and Asia

Find your location

Product College

A computer science college

Graduate into a successful career as a founder or software engineer.

Learn more