Closed Itangalo closed 2 years ago
For some games it would be useful to find all spaces that are connected and share a certain property – for example for finding all connected forest spaces.
Perhaps something to add to the function getSpacesWithinRange(). Perhaps not.
Implemented with mySpace.getMatchingSpacesWithinRange(), as an alias to mySpace.getSpacesWithinRange(). Tests and documentation in place.
For some games it would be useful to find all spaces that are connected and share a certain property – for example for finding all connected forest spaces.
Perhaps something to add to the function getSpacesWithinRange(). Perhaps not.