// Project 5. Question 2. Solution // Tic Tac Toe (with arrays) // modified from the Project 3. // Date: 25 March 2001 // Author: Rimon Barr class TicTacToe { // constants for player pieces and numbers private static final char[] PLc={'X', 'O'}; private static final int[] PLn={1, 2}; private static final char EMPTY=' '; // board (row, col) private static final int SIZE=3; private static char[][] sq=new char[SIZE][SIZE]; // input stream private static TokenReader in=new TokenReader(System.in); // display board private static void printLine() { for(int i=0; i=0 && row=0 && col