Version 5.0
=========== Alpha-beta pruning is the only main change.
This commit is contained in:
@ -33,7 +33,7 @@ public class SuicideChess {
|
||||
/**
|
||||
* The name to be displayed
|
||||
*/
|
||||
public static final String NAME = "djib's SuShi (Suicide Chess) v0.4.3";
|
||||
public static final String NAME = "djib's SuShi (Suicide Chess) v0.5";
|
||||
|
||||
/**
|
||||
* Displays informations in the console.
|
||||
@ -43,7 +43,7 @@ public class SuicideChess {
|
||||
/**
|
||||
* Number of Plies the computes searches to
|
||||
*/
|
||||
public static final int PLY_DEPTH = 4;
|
||||
public static final int PLY_DEPTH = 6;
|
||||
|
||||
/**
|
||||
* Test and display if the board is in a winning state.
|
||||
@ -276,7 +276,7 @@ public class SuicideChess {
|
||||
}
|
||||
|
||||
if (computerPlaying) {
|
||||
Move computerMove = ComputerPlayer.doMinMaxMove(bitboard);
|
||||
Move computerMove = ComputerPlayer.doAlphaBetaMove(bitboard);
|
||||
bitboard.doMove(computerMove);
|
||||
addPlayedPosition(bitboard);
|
||||
XBoardProtocol.doMove(computerMove);
|
||||
|
Reference in New Issue
Block a user