示例#1
0
 public static void updateBoard(ZobristEntry ze, byte depth, short lowerbound, short upperbound, ushort age, Move bestMove)
 {
     ze.depth      = depth;
     ze.lowerbound = lowerbound;
     ze.upperbound = upperbound;
     ze.age        = age;
     ze.bestMove   = bestMove;
 }
示例#2
0
 public static bool FindBoardWithHash(UInt64 hash, out ZobristEntry he)
 {
     if (boards.TryGetValue(hash, out he))
     {
         //check for index collision
         if (he.hashKey == hash)
         {
             BoardsFound++;
             return(true);
         }
         else
         {
             boards.Remove(hash);
         }
     }
     return(false);
 }