Understanding the Views in a Game

The game presented in this chapter is called Coin Sorter. It is a simple puzzle game in which the player sorts coins into rows and columns. The player has ten turns to make as many matching rows or columns as possible. The fun part of this game is just about as simple as an iOS game can get. The playable part of this game is comprised of just two classes, CoinsController and CoinsGame. As the names of these two classes suggest, CoinsController is responsible for rendering the game to the screen and interpreting player actions. CoinsGame is responsible for storing the state of the game and providing a few utility methods for manipulating that state. The details of how these two classes work is explored fully in ...

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.