Example #1
0
        public void AddEntry(ulong key, Move move, int score, int depth)
        {
            PvTableEntry entry;

            if (GetEntry(key, out entry))
            {
                if (entry.Depth > depth)
                {
                    Console.WriteLine("Did not overrite entry");
                    return;
                }
                else
                {
                    Console.WriteLine("Overriting existing entry");
                }
            }
            dictionary[key] = new PvTableEntry(move, score, depth);
        }
Example #2
0
 public bool GetEntry(ulong key, out PvTableEntry entry)
 {
     return(dictionary.TryGetValue(key, out entry));
 }