Skip to content

Commit 985b9fd

Browse files
xu-shawnvondele
authored andcommitted
Remove Killer Heuristic In Move Ordering
Passed Non-regression STC: LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 80480 W: 20979 L: 20802 D: 38699 Ptnml(0-2): 279, 9610, 20337, 9683, 331 https://tests.stockfishchess.org/tests/view/669c12c14ff211be9d4ec69b Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 77988 W: 19788 L: 19624 D: 38576 Ptnml(0-2): 66, 8605, 21481, 8783, 59 https://tests.stockfishchess.org/tests/view/669d628a4ff211be9d4ec7a8 closes #5511 bench 1367740
1 parent 1e2f051 commit 985b9fd

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/movepick.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,13 @@ MovePicker::MovePicker(const Position& p,
8686
const ButterflyHistory* mh,
8787
const CapturePieceToHistory* cph,
8888
const PieceToHistory** ch,
89-
const PawnHistory* ph,
90-
Move km) :
89+
const PawnHistory* ph) :
9190
pos(p),
9291
mainHistory(mh),
9392
captureHistory(cph),
9493
continuationHistory(ch),
9594
pawnHistory(ph),
9695
ttMove(ttm),
97-
killer(km),
9896
depth(d) {
9997

10098
if (pos.checkers())
@@ -164,8 +162,6 @@ void MovePicker::score() {
164162
m.value += (*continuationHistory[3])[pc][to];
165163
m.value += (*continuationHistory[5])[pc][to];
166164

167-
m.value += (m == killer) * 65536;
168-
169165
// bonus for checks
170166
m.value += bool(pos.check_squares(pt) & to) * 16384;
171167

src/movepick.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ class MovePicker {
159159
const ButterflyHistory*,
160160
const CapturePieceToHistory*,
161161
const PieceToHistory**,
162-
const PawnHistory*,
163-
Move killer = Move::none());
162+
const PawnHistory*);
164163
MovePicker(const Position&, Move, int, const CapturePieceToHistory*);
165164
Move next_move(bool skipQuiets = false);
166165

@@ -177,7 +176,7 @@ class MovePicker {
177176
const CapturePieceToHistory* captureHistory;
178177
const PieceToHistory** continuationHistory;
179178
const PawnHistory* pawnHistory;
180-
Move ttMove, killer;
179+
Move ttMove;
181180
ExtMove * cur, *endMoves, *endBadCaptures, *beginBadQuiets, *endBadQuiets;
182181
int stage;
183182
int threshold;

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ Value Search::Worker::search(
907907

908908

909909
MovePicker mp(pos, ttData.move, depth, &thisThread->mainHistory, &thisThread->captureHistory,
910-
contHist, &thisThread->pawnHistory, ss->killer);
910+
contHist, &thisThread->pawnHistory);
911911

912912
value = bestValue;
913913

0 commit comments

Comments
 (0)