Movepick: add and use find_best_index() helper

This removes a bunch of redundant code.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-10-17 08:25:39 +02:00
parent 06d6468ce9
commit cf8ee79b76
2 changed files with 27 additions and 38 deletions

View File

@@ -75,6 +75,7 @@ private:
void score_evasions();
void score_qcaptures();
Move pick_move_from_list();
int find_best_index();
const Position& pos;
Move ttMove, mateKiller, killer1, killer2;