]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Document asymmetric SEE pruning trick
[stockfish] / src / position.h
index 8d15f266d11f04607cfcb3ce85be26ea8785acd1..0951b4669cd28ee61d32771a602d68a484d95de4 100644 (file)
@@ -160,6 +160,7 @@ public:
   // Static exchange evaluation
   int see(Move m) const;
   int see_sign(Move m) const;
+  int see_asymm(Move m, int asymmThreshold) const;
 
   // Accessing hash keys
   Key key() const;
@@ -193,6 +194,7 @@ private:
 
   // Helper functions
   void do_castle(Square kfrom, Square kto, Square rfrom, Square rto);
+  template<bool Asymmetric> int do_see(Move m, int asymmThreshold) const;
   template<bool FindPinned> Bitboard hidden_checkers() const;
 
   // Computing hash keys from scratch (for initialization and debugging)