]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Use a per-thread array for generated moves
[stockfish] / src / movepick.h
index c444615f5b9f2e8ab4a0952ff47e3c97bf642079..f3839bf024d9e03a81db31cb93dadf8e475f7ca9 100644 (file)
@@ -87,6 +87,7 @@ public:
   MovePicker(const Position&, Move, Depth, const HistoryStats&, Square);
   MovePicker(const Position&, Move, const HistoryStats&, PieceType);
   MovePicker(const Position&, Move, Depth, const HistoryStats&, Move*, Search::Stack*);
+ ~MovePicker();
 
   template<bool SpNode> Move next_move();
 
@@ -103,8 +104,7 @@ private:
   ExtMove killers[4];
   Square recaptureSquare;
   int captureThreshold, stage;
-  ExtMove *cur, *end, *endQuiets, *endBadCaptures;
-  ExtMove moves[MAX_MOVES];
+  ExtMove *moves, *cur, *end, *endQuiets, *endBadCaptures;
 };
 
 #endif // #ifndef MOVEPICK_H_INCLUDED