Version 1.0.4
============= Improved move ordering Changed default values
This commit is contained in:
@ -282,20 +282,20 @@ public class ConfigFile {
|
||||
10, 10, 10, 10, 10, 10, 10, 10
|
||||
};
|
||||
squareWeightEndgame = new int[]{
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10,
|
||||
10, 10, 10, 10, 10, 10, 10, 10
|
||||
};
|
||||
primaryMobilityValueMidgame = 40;
|
||||
primaryMobilityValueEndgame = 40;
|
||||
secondaryMobilityValueMidgame = 40; //5;
|
||||
secondaryMobilityValueEndgame = 40;
|
||||
endGamePawns = 3;
|
||||
primaryMobilityValueMidgame = 0;
|
||||
primaryMobilityValueEndgame = 0;
|
||||
secondaryMobilityValueMidgame = 0; //5;
|
||||
secondaryMobilityValueEndgame = 0;
|
||||
endGamePawns = 4;
|
||||
endGamePieces = 8;
|
||||
}
|
||||
|
||||
|
@ -44,11 +44,15 @@ class MoveCompare implements Comparator<Move> {
|
||||
} catch (NotAValidSquare e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
/*
|
||||
if(oneBoardCopy.getBoardValue()<anotherBoardCopy.getBoardValue()) {
|
||||
return sortOrder;
|
||||
} else if (oneBoardCopy.getBoardValue()==anotherBoardCopy.getBoardValue()) {
|
||||
return 0;
|
||||
}
|
||||
return -sortOrder;
|
||||
*/
|
||||
return sortOrder*(anotherBoardCopy.getBoardValue()-oneBoardCopy.getBoardValue());
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class SuicideChess {
|
||||
/**
|
||||
* Use mobility in evaluation function (slows the program down a lot)
|
||||
*/
|
||||
public static final boolean USE_MOBILITY = false;
|
||||
public static final boolean USE_MOBILITY = true;
|
||||
|
||||
/**
|
||||
* do move ordering in Alpha-Beta pruning ?
|
||||
@ -99,7 +99,7 @@ public class SuicideChess {
|
||||
/**
|
||||
* The name to be displayed
|
||||
*/
|
||||
public static final String NAME = "djib's SuShi v1.0.3";
|
||||
public static final String NAME = "djib's SuShi v1.0.4";
|
||||
|
||||
/**
|
||||
* Displays informations in the console.
|
||||
@ -498,8 +498,8 @@ public class SuicideChess {
|
||||
bitboard.display();
|
||||
displayPlayer(bitboard);
|
||||
}
|
||||
computerMove.display();
|
||||
bitboard.debug();
|
||||
//computerMove.display();
|
||||
//bitboard.debug();
|
||||
}
|
||||
|
||||
if (testAndDisplayIfWinningOrDrawPosition(bitboard)) {
|
||||
|
Reference in New Issue
Block a user