1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00: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:
Marco Costalba 2009-05-28 14:58:35 +02:00
parent 738bf66a2d
commit bafb9f1a25

View file

@ -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;