}
public int growMin(int min, int max, int value, int d)
throws WorldDimensionException {
if (value < 1) {
throw new WorldDimensionException();
}
if (max == -min) {
if (value % 2 != 1) {
throw new WorldDimensionException();
}
return -(value - 1) / 2;
} else if (max == 0) {
return -(value - 1);
}