TicTacToe

First Project in Six Month Challenge of Android App Development

I. Introduction

This project is just a basic tic tac toe game for starter project. The idea is having two player in the game, and these two players are represented by either red or yellow. This a 3x3 tic tac toe game

Figure 1. The screen of the game

II. Procedure

Flow Chart

Figure 2. The flow chart of the game

These are steps needed for this project

  1. Download the android studio ide
  2. Download the source file. In this source file, the images are provided
  3. Open the file with ide
  4. Create a grid view for each square
  5. Drop one of the chip(Red/Yellow) into the square
  6. In the xml file, set up the tag for each chip so it is easier for developer to generate the source code
  7. Implement the source file in MainActivity.java. Each line of code is provided with comment of explaination

III. Result

The project finished successfully. The result is diplayed in figure 3,4, and 5. In this project, I have learnt about grid layout, tag number and action onclick in XML. Besides, the built in function such as findViewById(),setVisibility(),getChildCount(), and getChildAt()

Figure 3. Gameplay of the TicTacToe

Figure 4. Red wins

Figure 5. Yellow wins