]> git.sesse.net Git - stockfish/commitdiff
Revert threat move ordering
authorMarco Costalba <mcostalba@gmail.com>
Wed, 26 Nov 2008 10:22:30 +0000 (11:22 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 26 Nov 2008 10:22:30 +0000 (11:22 +0100)
Does not seem to improve anything.

Anyhow idea is nice, maybe we still have to find
correct recipe.

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

index ca0d8681a1d0515f4fc8c87110ab34124138ecd5..d4242a300de7620e5f58665cb20c7e5ff0aa102c 100644 (file)
@@ -72,7 +72,6 @@ MovePicker::MovePicker(const Position& p, bool pv, Move ttm,
   mateKiller = (ss.mateKiller == ttm)? MOVE_NONE : ss.mateKiller;
   killer1 = ss.killers[0];
   killer2 = ss.killers[1];
   mateKiller = (ss.mateKiller == ttm)? MOVE_NONE : ss.mateKiller;
   killer1 = ss.killers[0];
   killer2 = ss.killers[1];
-  threatMove = ss.threatMove;
   depth = d;
   movesPicked = 0;
   numOfMoves = 0;
   depth = d;
   movesPicked = 0;
   numOfMoves = 0;
@@ -271,11 +270,6 @@ void MovePicker::score_noncaptures() {
       else
           hs = H.move_ordering_score(pos.piece_on(move_from(m)), m);
 
       else
           hs = H.move_ordering_score(pos.piece_on(move_from(m)), m);
 
-      // If the null move was refuted by a capture then give a
-      // bonus if we move away the captured piece.
-      if (threatMove != MOVE_NONE && move_from(m) == move_to(threatMove))
-          hs *= 3;
-
       // Ensure history is always preferred to pst
       if (hs > 0)
           hs += 1000;
       // Ensure history is always preferred to pst
       if (hs > 0)
           hs += 1000;
index 5fff409259c1cfd8d1544b277c06c85715ede770..fd1ee890f7f8646eb06b6165c6e9645940068a4a 100644 (file)
@@ -83,7 +83,7 @@ private:
   int find_best_index(Bitboard* squares, int values[]);
 
   const Position& pos;
   int find_best_index(Bitboard* squares, int values[]);
 
   const Position& pos;
-  Move ttMove, mateKiller, killer1, killer2, threatMove;
+  Move ttMove, mateKiller, killer1, killer2;
   Bitboard pinned, dc;
   MoveStack moves[256], badCaptures[64];
   bool pvNode;
   Bitboard pinned, dc;
   MoveStack moves[256], badCaptures[64];
   bool pvNode;