The primary purpose of this example is to dig up some basic
Android 2D features and get familiar with some game programming
principles. Although TicTacToe is not really an interactive
game, I think its simplicity will help us to be focused on what
matters most which is actually how to do things in Android
rather than how to design and develop an efficient game
algorithm for a particular game. (I'm gonna use the same
technique that has been used in LunarLandar application, which
by the way is a pretty good example in this area). first of all
let's have a look at how our application will be looking like:
Despite the fact that TicTacToe is a pretty easy game to
develop, Graphic wise I mean, and can be simply done by
extending View Class, I have actually used 'SurfaceView', since
apparently it's a better option for developing interactive games
in Android. the most important point about SurfaceView class is
that it uses two buffers, a drawing buffer and a displaying
buffer, you are not allowed to draw directly on