package chess;
public class Evaluate {
public static final int PIECE_KING = 0;
public static final int PIECE_QUEEN = 1;
public static final int PIECE_ROOK = 2;
public static final int PIECE_BISHOP = 3;
public static final int PIECE_KNIGHT = 4;
public static final int PIECE_PAWN = 5;
public static final int FULL_BIT_RANK = 4080;
public static final int LAZY_MARGIN = 100;
public static final int ISOLATED_PENALTY = 10;
public static final int DOUBLE_PENALTY = 4;
public static final int[] PIECE_VALUE = { 0, 9, 5, 3, 3, 1 };
public static final int[] PASS_PAWN = { 0, 35, 30, 20, 10, 5 };
public static final byte[] DISTANCE = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 5, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 5, 4, 5, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 5, 4, 3, 4, 5, 6, 7,
0, 0, 0, 0, 0, 0, 7, 6, 5, 4, 3, 2, 3, 4, 5, 6, 7,
0, 0, 0, 0, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7,
0, 0, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7,
0, 0, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7,
0, 0, 0, 0, 7, 6, 5, 4, 3, 2, 3, 4, 5, 6, 7,
0, 0, 0, 0, 0, 0, 7, 6, 5, 4, 3, 4, 5, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 5, 4, 5, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 5, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7 };
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
|||||||||
|
closed as too localized by Gajoo, bummzack, Sam Hocevar, Byte56, Tetrad♦ Jun 5 '12 at 15:45
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
|
I'm guessing it is the Manhattan distance to the center in a program that uses an 0x88 board representation (that's why it's 16x16). |
|||
|
