mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
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 <mcostalba@gmail.com>
This commit is contained in:
@@ -162,7 +162,9 @@ Move MovePicker::get_next_move() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PH_BAD_CAPTURES:
|
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;
|
movesPicked = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user