// class TTT { public static int row, col;

// Cameron Nijjar// Tic Tac Toe Final Project // Jan 23 2018 // Mr.Patterson import java.util.Scanner;   public class TTT {   public static int row, col;   public static Scanner input = new Scanner(System.in);   public static char gameboard = new char33;   public static char turn = ‘X’ ;    public static void main(String args) {           for (int c = 0; c < 3; c++) {       for (int n = 0; n < 3; n++) {         gameboardcn = '_';               }     }        Play();       }     public static void Play() {     boolean playing = true;     PrintBoard();     while (playing) {       System.out.println("Please enter a row and column you would like to place your symbol: ");       row = input.nextInt() - 1;       col = input.nextInt() - 1;       gameboardrowcol = turn;      if (GameOver(row, col)) {         playing = false;         System.out.println("Game over!!! Player " + turn + " won!");               }             PrintBoard();       if (turn == 'X')         turn = 'O';       else        turn = 'X';       }  }  public static void PrintBoard() {     for (int c = 0; c < 3; c++) {       System.out.println();       for (int n = 0; n < 3; n++) {         if (n == 0)           System.out.print(" | ");         System.out.print(gameboardcn + " | ");       }    }    System.out.println();   }     public static boolean GameOver(int rowMove, int colMove){  //Check horizontal victory  if(gameboard0colMove == gameboard1colMove   && gameboard0colMove == gameboard2colMove)   return true;  if(gameboardrowMove0 == gameboardrowMove1   && gameboardrowMove0 == gameboardrowMove2)   return true;  //Check diagonal victory  if (gameboard00 == gameboard11 && gameboard00 == gameboard22   && gameboard11 != '_')   return true;  if (gameboard02 == gameboard11 && gameboard02 == gameboard20   && gameboard11 != '_')   return true;  return false; }}