
com.fathzer.chess.utils.evaluators.simplified.EndGameKingSquareTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chess-utils Show documentation
Show all versions of chess-utils Show documentation
Some helpful piece of code to implement chess engines.
The newest version!
package com.fathzer.chess.utils.evaluators.simplified;
import com.fathzer.chess.utils.evaluators.AbstractPieceSquareTable;
class EndGameKingSquareTable extends AbstractPieceSquareTable {
private static final int[] EVAL = new int[] {
-50,-40,-30,-20,-20,-30,-40,-50,
-30,-20,-10, 0, 0,-10,-20,-30,
-30,-10, 20, 30, 30, 20,-10,-30,
-30,-10, 30, 40, 40, 30,-10,-30,
-30,-10, 30, 40, 40, 30,-10,-30,
-30,-10, 20, 30, 30, 20,-10,-30,
-30,-30, 0, 0, 0, 0,-30,-30,
-50,-30,-30,-30,-30,-30,-30,-50};
@Override
protected int get(int piece, int index) {
return EVAL[index];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy