public static void main(String[] args) { TicTacToe ticTacToe = new TicTacToe(3); ticTacToe.play(6); ticTacToe.play(3); ticTacToe.play(7); ticTacToe.play(4); ticTacToe.play(8); ticTacToe.printBoard(); }
public static void main(String args[]) { // set up game TicTacToe game = new TicTacToe(); // load interface // T3Interface t3interface = new T3TextInterface(game); T3Interface t3interface = new T3GraphicInterface(game); // set interface game.setInterface(t3interface); // play game game.play(); }