From c439af4822bd8819920309deb0c75ab8669dbf2e Mon Sep 17 00:00:00 2001 From: Calcitem Date: Tue, 20 Apr 2021 22:35:43 +0800 Subject: [PATCH] tt: Add tt_move() --- src/tt.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tt.h b/src/tt.h index 214077d6..b7fd3366 100644 --- a/src/tt.h +++ b/src/tt.h @@ -50,6 +50,13 @@ struct TTEntry return (Bound)(genBound8); } +#ifdef TT_MOVE_ENABLE + Move tt_move() const noexcept + { + return (Move)(ttMove); + } +#endif // TT_MOVE_ENABLE + private: friend class TranspositionTable; @@ -88,7 +95,7 @@ public: #endif // TT_MOVE_ENABLE ); - static inline Bound boundType(Value value, Value alpha, Value beta); + static Bound boundType(Value value, Value alpha, Value beta); static void clear();