package TicTacToe;

/**
 * Matthew Amdur
 *
 *
 * This is an interface that contains all the constants that we use in the program
 * By defining things like the size of the board, the size of the squares, and the
 * size of the frame in an interface, we can change them all very easily. For 
 * instance, try making BOARD_SIZE 4 or 5, and then you can play 5x5 TicTacToe.
 * Also, this helps when writing large programs, so that we don't accidently change
 * the size of things midway through the program.
 **/

public interface BoardSize {
 
  /**This is the width of each square.**/

  int SHAPE_WIDTH = 75;

  /**This is the number of squares that makes up the board. Don't set the size
    *of the Board to be too big, GP.Containers.Frame eat up a lot of memory,
    *and it can get slow. **/

  int BOARD_SIZE = 3;

  /**This is the offset between squares that makes it look like there are lines
    *on the board. **/

  int OFFSET = 25;

  /**This calculates how large our frame has to be. We want BOARD_SIZE-1 since the
    *last square on the right doesn't need an offset after it. **/

  int FRAME_SIZE = ( (BOARD_SIZE) * (SHAPE_WIDTH) ) + ((BOARD_SIZE-1) * OFFSET);
}
