Skip to content

Commit

Permalink
Order bad captures by SEE value
Browse files Browse the repository at this point in the history
We have already calculated it, so just sorting the
moves adds a very little overhead.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information
mcostalba committed May 29, 2009
1 parent 738bf66 commit bafb9f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/movepick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ Move MovePicker::get_next_move() {
break;

case PH_BAD_CAPTURES:
// It's probably a good idea to use SEE move ordering here. FIXME
// Bad captures SEE value is already calculated by score_captures()
// so just sort them to get SEE move ordering.
std::sort(badCaptures, badCaptures + numOfBadCaptures);
movesPicked = 0;
break;

Expand Down

0 comments on commit bafb9f1

Please sign in to comment.