Before a big change in the code : different value for each piece

This commit is contained in:
2006-06-30 15:34:22 +00:00
parent 95deacff45
commit e9d5fe78a7
3 changed files with 20 additions and 19 deletions

View File

@ -85,6 +85,9 @@ public class Board {
private int numberOfBlackPieces = NB_OF_FILES*2;
private int numberOfWhitePieces = NB_OF_FILES*2;
private int[] numberOfPieces = new int[Piece.MAX_PIECE_NUMBER];
{ numberOfPieces[Piece.BLACK_BISHOP]=2;
}
private int boardValue = 0; //evaluation of the board value
private int currentPlayer; //color of the current player.