All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fathzer.chess.utils.evaluators.simplified.EndGameKingSquareTable Maven / Gradle / Ivy

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