// NewPathRange returns a new PathFinder for positions in a given range,
// such as the range occupied by the whole map, or a part of it.
NewPathRange returns a new PathFinder for positions in a given range,
such as the range occupied by the whole map, or a part of it.
// NewPathRange returns a new PathFinder for positions in a given range // such as the range occupied by the whole map or a part of it .
func NewPathRange(rg gruid.Range) *PathRange {
	pr := &PathRange{}
	pr.Rg = rg
	max := pr.Rg.Size()
	pr.W = max.X
	pr.Capacity = max.X * max.Y
	return pr
}
func NewPathRange ( rg gruid . Range ) * PathRange { pr := & PathRange { } pr . Rg = rg max := pr . Rg . Size ( ) pr . W = max . X pr . Capacity = max . X * max . Y return pr }
NewPathRange returns a new PathFinder for positions in a given range,
such as the range occupied by the whole map, or a part of it.
NewPathRange returns a new PathFinder for positions in a given range such as the range occupied by the whole map or a part of it .