TilePlacement newPlacement =
new TilePlacement(tile, location, Rotation.ANGLE_0);
int ct = 0;
while (!fitter.isFit(newPlacement) && ct < HexTile.NUM_SIDES) {
//System.out.println("new placement = " + newPlacement);
newPlacement = newPlacement.rotate();
ct++;
}
if (ct >= HexTile.NUM_SIDES) {
throw new IllegalStateException("could not fit " + tile + " at " + location + " in " + fitter.getTantrix());
}