Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.
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 };
share|improve this question

closed as too localized by Ali.S, 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, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
Not nearly enough information provided to make this answerable in my opinion. And even if you did, it's such a specific question, I sincerely doubt it would be useful to anyone else. –  MrCranky Jun 5 '12 at 11:35
    
Without any more information, Some variables and nothing more mean nothing to us. Is this the code you are using? j2me-chess.googlecode.com/svn/tags/2010/1/src/chess –  Cyral Jun 5 '12 at 12:24
    
I even doubt it would be useful to yourself! –  Ali.S Jun 5 '12 at 12:54

1 Answer 1

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).

share|improve this answer
    
It's actually 241 cells. But according to to the original source code it is indeed a lookup table for the Manhattan distance between two squares on a 0x88 board. –  Sam Hocevar Jun 5 '12 at 12:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.