// must be bounded by -1 and 1
relativeHealth =
(float) (Math.min(1.0, Math.max(-1.0, absoluteHealth + diff * proportionWithEnemyNbrs)));
}
groupStones.unvisitPositions();
return relativeHealth;
}
/**
* What proportion of the groups stones are close to enemy groups?