Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }