The Game Board

We’ll build up the game board by starting from the smallest part and moving to larger and larger parts as we go. Depending on how your brain works, you could start with the top-level objects and move downward. It’s up to you, but this way works best for me.

Starting Small

First, take a look back at Figure 2, Tic-Tac-Toe meets Inception and think about what it will take to implement that. What comes to mind first? Probably the X and O symbols, so let’s do them first.

images/fig.xo.icons.png

You can make up your own, or download mine from the book’s website[43] (they’re part of the ticTacToev2 example code). I created x_blue.png and o_red.png using a ...

Get Hello, Android, 4th Edition 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.