Exemple #1
0
 public PickBestValueNodeVisitor(TargetBorder targetBorder, IFieldsGraph graphCopy, IPerformMoves performMoves)
 {
     _targetBorder   = targetBorder;
     _valueOfGraph   = new WhiteStoneToBorderDistanceValue(targetBorder);
     _graphCopy      = graphCopy;
     _performMoves   = performMoves;
     CurrentMaxValue = _valueOfGraph.GetValue(_graphCopy);
     MaxUpdated     += () => { };
 }
Exemple #2
0
 public BestValueAddRemoveCollection(IPerformMoves performMoves, IValueOfGraph valueOfGraph)
 {
     _performMoves = performMoves;
     _valueOfGraph = valueOfGraph;
     _inner        = new BinaryHeap <int, ITree <JumpNode> >((left, right) => right - left);
 }