X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=b992d2353041f69b1579c064904fc5b15ce28cb3;hp=589c27b3585383be0ac6823907f767b36696d36b;hb=c2d42ea8339b49e52a116e488214a14fda09d413;hpb=6e05055f06b301b16a37c3178d9d444cd09dc150 diff --git a/src/movepick.cpp b/src/movepick.cpp index 589c27b3..b992d235 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -232,7 +232,7 @@ void MovePicker::go_next_phase() { /// MovePicker::score_captures(), MovePicker::score_noncaptures() and /// MovePicker::score_evasions() assign a numerical move ordering score /// to each move in a move list. The moves with highest scores will be -/// picked first by get_next_move(). +/// picked first by next_move(). void MovePicker::score_captures() { // Winning and equal captures in the main search are ordered by MVV/LVA. @@ -300,14 +300,14 @@ void MovePicker::score_evasions() { } } -/// MovePicker::get_next_move() is the most important method of the MovePicker -/// class. It returns a new pseudo legal move every time it is called, until there +/// MovePicker::next_move() is the most important method of the MovePicker class. +/// It returns a new pseudo legal move every time it is called, until there /// are no more moves left. It picks the move with the biggest score from a list /// of generated moves taking care not to return the tt move if has already been /// searched previously. Note that this function is not thread safe so should be /// lock protected by caller when accessed through a shared MovePicker object. -Move MovePicker::get_next_move() { +Move MovePicker::next_move() { Move move;