added fifty move rule | bench 902872
This commit is contained in:
1 parent
8f96875145
commit
eb2cc35239
3 files changed
+23
-1
No files matched your search
+5
-1
@@ -98,6 +98,10 @@ static bool IsThreefold(Board &board) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool IsFifty(Board &board) {
|
||||
return board.halfMoves >= 50;
|
||||
}
|
||||
|
||||
static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int ply) {
|
||||
int reduction = 0;
|
||||
|
||||
@@ -170,7 +174,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
|
||||
}
|
||||
|
||||
pvLine.SetLength(ply);
|
||||
if (ply && IsThreefold(board)) return 0;
|
||||
if (ply && (IsThreefold(board) || IsFifty(board))) return 0;
|
||||
|
||||
|
||||
// if NOT PV node then we try to hit the TTable
|
||||
|
||||
Reference in new issue
Block a user