Better check evasion move sorting

Use in addition the counter move history table for sorting quiet
check evasion moves in main and quiecence search. Also rename
"contHistory" to "continuationHistory" while there.

STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 73284 W: 16433 L: 15938 D: 40913
http://tests.stockfishchess.org/tests/view/5b4f526e0ebc5902bdb7a401

LTC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 12135 W: 2171 L: 1997 D: 7967
http://tests.stockfishchess.org/tests/view/5b4fc0ef0ebc5902bdb7ae0e

Closes https://github.com/official-stockfish/Stockfish/pull/1685

Bench 4817583
This commit is contained in:
Stefan Geschwentner
2018-07-19 18:26:05 +02:00
committed by Stéphane Nicolet
parent 3913726d1c
commit 12e79be910
6 changed files with 30 additions and 21 deletions

View File

@@ -61,11 +61,11 @@ void Thread::clear() {
mainHistory.fill(0);
captureHistory.fill(0);
for (auto& to : contHistory)
for (auto& to : continuationHistory)
for (auto& h : to)
h.get()->fill(0);
contHistory[NO_PIECE][0].get()->fill(Search::CounterMovePruneThreshold - 1);
continuationHistory[NO_PIECE][0].get()->fill(Search::CounterMovePruneThreshold - 1);
}
/// Thread::start_searching() wakes up the thread that will start the search