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