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); }
public bool GetEntry(ulong key, out PvTableEntry entry) { return(dictionary.TryGetValue(key, out entry)); }