I'm trying to make a game I'm finding myself trying to reinvent a wheel that probably already exists.
Here is a sample of the problem I'm trying to solve. I'm trying to check if any board pieces fall within the territory of another player, in this case, the black piece is captured.
W W - -
- - W -
- B W -
- - W -
Any advice to go about solving this would be appreciated.