
/**
 * Play TicTacToe - using 2D arrays, and a class from scratch
 * 
 * @author Kathryn McKinley 
 * @version (a version number or a date)
 */
public class TicTacToe
{
    // Do we need static class variables?
    // what should our instance variables be?
    private String[][] board; 
    private String X = "X";
    private String O = "O";    
    /**
     * Constructor for objects of class TicTacToe
     */
    public TicTacToe()
    {
        // initialize instance variables
        board = new String[3][3]; 

    }

    /**
     * Print out the tictactoe board
     */
    public void printBoard()
    {
        for (int i = 0; i < board.length; i++) {
            for (int j = 0; j < board[i].length; j++) {
                if (board[i][j] == null) {
                    System.out.print("_");
                } else {
                    System.out.print(board[i][j]);
                }
                if (j < 2) {
                    System.out.print("|");
                } else {
                    System.out.println();
                }
  
             }
         }
    }
    public Boolean winner() {
        for (int i = 0; i < board.length; i++) {
            for (int j = 0; j < board[i].length; j++) {
                if (board[i][j].equals(X) {

            }
        }
        
    }
    public static void main(String[] args) {
        TicTacToe ttt = new TicTacToe();
        ttt.printBoard();
        
        Scanner stdin = new Scanner(System.in);
        Boolean status = true;
        
        while (status) {
            

        }
    }
}
