GoBoardPositionList exclusionList =
nbrAnalyzer_.findStringFromInitialPosition(space, groupOwnership, false,
NeighborType.NOT_FRIEND, boundingBox_);
Iterator it = exclusionList.iterator();
GroupAnalyzer groupAnalyzer = analyzerMap_.getAnalyzer(group_);
while (it.hasNext()) {
GoBoardPosition p = (GoBoardPosition)it.next();
if (p.isOccupied()) {
// if its a very weak opponent (ie dead) then don't exclude it from the list
if (!groupAnalyzer.isTrueEnemy(p)) {
p.setVisited(false);
it.remove(); // remove it from the list
}
}
}