O'Reilly logo

Hello, Android, 4th Edition by Ed Burnette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required