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:
parent
738bf66a2d
commit
bafb9f1a25
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue