Thanks! Seems like there's still an issue, though. This black loop is not detected.. Shouldn't it?
Edit: It seems it doesn't count loops around enemy pieces if not all sites inside the loop are occupied på the enemy. Is this intended? If so, how do I detect loops around at least one piece belonging to the other player?
Edit: It seems it doesn't count loops around enemy pieces if not all sites inside the loop are occupied på the enemy. Is this intended? If so, how do I detect loops around at least one piece belonging to the other player?