package TTT;

// This is the Applet class.  The Applet is where your program is run and
// can be seen by you.  This is also where I would like to describe the
//way this program is organized.  There are three classes and one 
//interface for constants.  There is an Applet (which is this) which is

//graphically where the program will occur.  It is the beginning of all
//java
// programs because it is the "window" in which our code will appear. The
//other two objects in the program are a Board class which is the central
//place where all the "action" goes on and a Square class which is how we
//get the squares to take care of all the information that is pertainable
//to each of them individually.

//The design of the program is that the Applet creates the Board which 
//creates all of the squares that fill in the board.  Then, whenever there
//is user input such as clicking on the board, it is handled by the square
//unless there is something (like endgame checking) that needs to be done
//by the board.  This is a relatively simple program and I hope that my
//comments and my journal help show you the problems that I solved and
//faced during the coding of this problem.

public class Applet extends GP.Containers.Applet {

//  A Board - because we'll need a board to play tictactoe on.

private Board _board;

public Applet() {

//  now that we have named a board - let's give it a value.  It doesn't
// matter which board it is so this game will get a non-specific new board

_board = new Board(this);

// if we want things to show up pretty - we'll need to set a geometry
// manager

this.SetGeometryManager(new GP.Behaviors.GeometryManagers.Column());

}  // end constructor

} // end class

