package edu.columbia.cs.cs1007.checkers;
/**
* Constants used by the checkers game.
* @author Julia Stoyanovich (jds2109@columbia.edu)
* COMS 1007, Summer 2009.
*
*/
public final class Constants {
// colors of the board and of the pieces
public static enum SQUARE_COLOR {GREEN, YELLOW};
public static enum PIECE_COLOR {BLACK, WHITE, NONE};
public static enum PLAYER_STRATEGY {FIRST, RANDOM, FIRST_JUMP};
public static enum VERTICAL_DIRECTION {BACK, FORTH, BOTH};
public static enum HORIZONTAL_DIRECTION {LEFT, RIGHT};
// characters used to denote the pices
public static final char BLACK_SIGN = '*';
public static final char WHITE_SIGN = '+';
// dimensions of the board
public static final int NUM_ROWS = 8;
public static final int NUM_COLUMNS = 8;
// width of the initial position on the board, in # rows
public static final int INITIAL_WIDTH = 3;
}
|