]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Enable per-square MVV/LVA
[stockfish] / src / movepick.h
index b48bd8b80bd528e8cff46fef072f13965d88524d..c7b1ddaf58be40533e6e170b8ca6ef1e047b4801 100644 (file)
@@ -50,7 +50,7 @@ public:
     PH_TT_MOVE,        // Transposition table move
     PH_MATE_KILLER,    // Mate killer from the current ply
     PH_GOOD_CAPTURES,  // Queen promotions and captures with SEE values >= 0
-    PH_BAD_CAPTURES,   // Queen promotions and captures with SEE valuse <= 0
+    PH_BAD_CAPTURES,   // Queen promotions and captures with SEE values < 0
     PH_KILLER_1,       // Killer move 1 from the current ply (not used yet).
     PH_KILLER_2,       // Killer move 2 from the current ply (not used yet).
     PH_NONCAPTURES,    // Non-captures and underpromotions
@@ -77,11 +77,14 @@ private:
   void score_qcaptures();
   Move pick_move_from_list();
   int find_best_index();
+  int MovePicker::find_best_index(Bitboard* squares, int values[]);
 
   const Position& pos;
   Move ttMove, mateKiller, killer1, killer2;
   Bitboard pinned, dc;
   MoveStack moves[256], badCaptures[64];
+  Bitboard capSquares;\r
+  int capSqValues[64];
   bool pvNode;
   Depth depth;
   int phaseIndex;