From bafb9f1a25204d06960a44f0637736edce233629 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 28 May 2009 14:58:35 +0200 Subject: [PATCH] Order bad captures by SEE value We have already calculated it, so just sorting the moves adds a very little overhead. Signed-off-by: Marco Costalba --- src/movepick.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 60fcbaa5..7b2479fc 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -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; -- 2.39.2