Permalink
Browse files

Update movepick.cpp

  • Loading branch information...
VoyagerOne committed Jan 11, 2018
1 parent 66ce8ad commit e6600b37098a29641d2d09e014b6ef6ed0e399a4
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/movepick.cpp
View
@@ -227,11 +227,14 @@ Move MovePicker::next_move(bool skipQuiets) {
/* fallthrough */
case QUIET:
while ( cur < endMoves
&& (!skipQuiets || cur->value >= VALUE_ZERO))
while (cur < endMoves)
{
move = *cur++;
if (skipQuiets && !(type_of(move) == NORMAL && !pos.discovered_check_candidates() &&
(pos.check_squares(type_of(pos.moved_piece(move))) & to_sq(move))))
continue;
if ( move != ttMove
&& move != killers[0]
&& move != killers[1]

0 comments on commit e6600b3

Please sign in to comment.