Пример #1
0
 public void CopyInto(PotKnowledge potKnowledge)
 {
     foreach (var kvp in _boardLookup)
     {
         potKnowledge.AddWin(kvp.Key, kvp.Value.Reason, kvp.Value.Depth, kvp.Value.ColorPair, kvp.Value.Swaps);
     }
 }
Пример #2
0
        public PotKnowledge this[int colorCount]
        {
            get
            {
                PotKnowledge p;
                if (!_potLookup.TryGetValue(colorCount, out p))
                {
                    p = new PotKnowledge(colorCount);
                    _potLookup[colorCount] = p;
                }

                return(p);
            }
        }