|Screenshot of the finished Tic Tac Toe product|
Why Build Tic Tac Toe?
I can think of a number of good reasons. Maybe building Tic Tac Toe isn't your ambitious Android app goal, but by following this tutorial you will be introduced to a number of concepts that you can reuse and apply. And hopefully playing it can be a little fun.
Also, Tic Tac Toe is a great game to build because its a medium sized project. Not too lengthy and complex but not exactly trivial either. For this reason, the Tic Tac Toe tutorial will be broken down into a couple of blog posts.
Defining the GameBefore we actually get to the programming of the Tic Tac Toe game, lets set up some ground rules.
- The game logic must be completely separate from the Android specific display logic
- The player will only play against the computer
- The player will always be X, the computer O
- There app will be limited to one activity, with one XML layout
- There will be two levels of difficulty
The Final ProductAs you read this, the final product is already available for downloading and testing on your Android Device. Check it out on the Android market with the following link: https://market.android.com/details?id=com.dreamdom.tictactoe
Other Posts in the series
Android Tic Tac Toe Game Logic - Part 1 Interfaces