From: Joost VandeVondele Date: Sun, 23 Apr 2017 15:37:55 +0000 (-0700) Subject: Sort moves partially: linear depth dependence X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6b9a22b40d37d27ad10cafd8697d96e90a586f8a Sort moves partially: linear depth dependence STC: http://tests.stockfishchess.org/tests/view/58f98d260ebc59035df33d5e LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 58958 W: 10862 L: 10485 D: 37611 LTC: http://tests.stockfishchess.org/tests/view/58fa45d40ebc59035df33d86 LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 18607 W: 2427 L: 2251 D: 13929 Bench: 6065528 Closes #1079 --- diff --git a/src/movepick.cpp b/src/movepick.cpp index 796649ab..cc795280 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -242,8 +242,7 @@ Move MovePicker::next_move(bool skipQuiets) { endMoves = generate(pos, cur); score(); - partial_insertion_sort(cur, endMoves, - depth < 3 * ONE_PLY ? 0 : INT_MIN); + partial_insertion_sort(cur, endMoves, -4000 * depth / ONE_PLY); ++stage; case QUIET: