| [SOLVED] How do I write a tic tac toe program in JavaScript as a GUI application? create a Tic Tac Toe game with a graphical user interface. Your program should contain at least two classes: TicTacToe.java and TicTacToeGUI.java.
TicTacToe.java will contain the logic of the game. It should keep track of which cells contain Xs and which contain Os. It should also determine whether the game has been won. You might want to use the TicTacToe.java on page 299 of the book as a model. The class should have a method for setting a cell to X, O or blank, a method for getting the contents of a cell, a method to determine if the game is finished, and a method to determine who (X, O, or stalemate) won the game.
TicTacToeGUI.java should have an instance of TicTacToe as an instance variable and should display the status of the game in a GUI. One way to accomplish this is to have 9 buttons in a grid layout, each of which represents a cell. When one of these buttons is pressed, its text will be changed from blank to X or O, depending on whose turn it is. When a player |