tt: Add tt_move()

This commit is contained in:
Calcitem 2021-04-20 22:35:43 +08:00
parent 1f6b0ff534
commit c439af4822
1 changed files with 8 additions and 1 deletions

View File

@ -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();