Templetize score_xxx() functions
[stockfish] / src / movepick.h
index 3be429ed1be2a0193a5d32afe95121c102fae3a9..5b40ded8e0b5911636e9651f0b81d380e186d198 100644 (file)
@@ -23,6 +23,7 @@
 #include <algorithm> // For std::max
 #include <cstring>   // For memset
 
 #include <algorithm> // For std::max
 #include <cstring>   // For memset
 
+#include "movegen.h"
 #include "position.h"
 #include "search.h"
 #include "types.h"
 #include "position.h"
 #include "search.h"
 #include "types.h"
@@ -79,9 +80,7 @@ public:
   template<bool SpNode> Move next_move();
 
 private:
   template<bool SpNode> Move next_move();
 
 private:
-  void score_captures();
-  void score_noncaptures();
-  void score_evasions();
+  template<GenType> void score();
   void generate_next();
 
   const Position& pos;
   void generate_next();
 
   const Position& pos;