Esempio n. 1
0
 private static bool IIDCanBeApplied(int depth, TranspositionTableEntryFlags ttEntryType, Move bestMove)
 {
     return(ttEntryType == TranspositionTableEntryFlags.Invalid && depth >= SearchConstants.IIDMinimalDepth && bestMove == Move.Empty);
 }
Esempio n. 2
0
        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);
        }