public TTProperty(List <Vector2> bestPoses, int score, TFlag flag, int depth) { this.bestPoses = Utils.Clone(bestPoses); this.score = score; this.flag = flag; this.depth = depth; }
public bool TryToStore(GameState gs, List <Vector2> bestPoses, int score, TFlag flag, int depth) { ulong hashKey = zoHash.GetHashKey(gs); if (!dict.ContainsKey(hashKey)) { //Console.WriteLine("TT stored with hash key = " + hashKey); dict[hashKey] = new TTProperty(bestPoses, score, flag, depth); return(true); } else { return(false); } }