]> git.sesse.net Git - stockfish/commit
RootMoveList sorting: be compatible with std::sort
authorMarco Costalba <mcostalba@gmail.com>
Fri, 5 Sep 2008 07:04:45 +0000 (09:04 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 5 Sep 2008 07:04:45 +0000 (09:04 +0200)
commit731a9f3806fec9956fee6f73b25c504503edc4bf
tree11d5d39d342285fdcd33573f02f8c01068ce3bd1
parentbd3fd6501baf11494e3919156f058980e20e9995
RootMoveList sorting: be compatible with std::sort

sort() and sort_multipv() are almost the same, so
use only one implementation.

Also introduce the natural RootMove::operator<() to
compare the moves instead of compare_root_moves(),
this will allow to use std::sort instead of our
home grown bubble-sort.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp