//next Thr quiz in lecture TicTacToe t = new TicTacToe(); TTTWindow w = new TTTWindow(t); t.setMark('X', 1,1) w.update(1,1) //instead of doing this manually, we write a "main" method // public static void main(String[] args) //this is the starting point of the program //After compiling, to run simply type: java programname //where programname is a .class file containing the main method //also, you can pass arguments to the main method: // java myprog arg1 arg2 ... //then in the main method args[0] is arg1, args[1] is arg2 and so on java TTTDriver java TTTDriver TicTacToe t = new TicTacToe(); t.getWinner() t.isDraw() java TTTDriver java TTTDriver //exercise: make the driver more robots: 1. if the use enters non-numbers or out of range row/column ask agian until row and column are valid. 2. if the row/column is valid but already occupied, tell user to choose an empty cell, and keep asking for a valid cell. The best way to do this is to change the setMark() method to return true/false (false if the cell is not BLANK), so in the driver if you setMark and it is false you know the cell was not BLANK.