private static bool IIDCanBeApplied(int depth, TranspositionTableEntryFlags ttEntryType, Move bestMove) { return(ttEntryType == TranspositionTableEntryFlags.Invalid && depth >= SearchConstants.IIDMinimalDepth && bestMove == Move.Empty); }
public TranspositionTableEntry(ulong hash, short score, Move bestMove, byte depth, TranspositionTableEntryFlags flags, byte age) { Key = (ushort)(hash >> 48); Score = score; BestMove = bestMove; Depth = depth; _ageFlagsField = (byte)flags; _ageFlagsField |= (byte)(age << 3); }