Skip to content

Commit 2502538

Browse files
committed
bugfix killer moves
1 parent 64225db commit 2502538

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

search.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ int AlphaBeta(BOARD *board, unsigned int depth, int alpha, int beta, int root, C
161161
if(val >= beta){
162162
UpdateTable(board->zobrist_key, val, poss_moves[i], depth, HASH_BETA);
163163
MOVE hash_move = GetHashMove(board->zobrist_key);
164-
if(SQSMASK(poss_moves[i]) != SQSMASK(hash_move)
165-
&& CAPTMASK(poss_moves[i]) == 0){
164+
if(CAPTMASK(poss_moves[i]) == 0){
166165
killers[depth] = poss_moves[i];
167166
}
168167
return beta;
@@ -198,7 +197,7 @@ int AlphaBeta(BOARD *board, unsigned int depth, int alpha, int beta, int root, C
198197
return alpha;
199198
}
200199

201-
int Quiescent(BOARD* board, int alpha, int beta, CONTROL *control)
200+
int Quiescent(BOARD *board, int alpha, int beta, CONTROL *control)
202201
{
203202
int nposs_movs, nlegal = 0;
204203
int val;

0 commit comments

Comments
 (0)