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 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.