Itangalo / Bot-Playtesting-Toolkit

A toolkit for simulating board games with Google spreadsheets. Intended use is board game development.
GNU General Public License v3.0
9 stars 1 forks source link

Find all spaces connected with a certain property #56

Closed Itangalo closed 2 years ago

Itangalo commented 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.

Itangalo commented 2 years ago

Implemented with mySpace.getMatchingSpacesWithinRange(), as an alias to mySpace.getSpacesWithinRange(). Tests and documentation in place.