Tic-Tac-Toe

Building a massive world can take months even with an army of engineers. However, the minigames that one plays in these systems are far simpler to dissect and explain. Because there are different tricks and techniques in all of these, getting a feel for how to put these together is important. For our social gaming minigame, we create a version of Tic-Tac-Toe that you have to play against the computer. We add some storyline to the cycles to play the game to make it a bit more engaging.

As in Chapter 6, the first thing to set up is the HTML and the project directories. I use the same directory structure as the last project in Chapter 6, so if you need help setting that up, check out the “Boilerplate” section (Listing 7–1), with a couple ...

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

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