public override Evaluation evaluate(Path path, BranchState state) { int pathLength = path.Length(); return(Evaluation.of(pathLength <= _depth, pathLength < _depth)); }
public override Evaluation evaluate(Path path, BranchState state) { int length = path.Length(); return(Evaluation.of(length >= _minDepth && length <= _maxDepth, length < _maxDepth)); }