Image

Chapter 4

Objective-C and Xcode: Developing a Blackjack Game

You’re going to learn Objective-C in this chapter! As per the hands-on nature of this book, you’ll be learning on the job, building an object-oriented blackjack game that implements the MVC (Model-View-Controller) paradigm.

The aim here is to get familiar with the structure and syntax of Objective-C: how to create classes; the syntax of methods; pointers and primitives—and a whole lot more.

The Game

We’re going to build a simplified version of blackjack, so there are a few caveats:

  • Players will have just two options during gameplay: Stand or Hit.
  • There’ll be no betting (sorry!). ...

Get Foundation iPhone App Development: Build An iPhone App in 5 Days with iOS 6 SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.