if (this.isAI) {
this.valide = false;
return;
}
else {
throw new BoardWrongWordPlace(
"Word letters must be verticaly unified !");
}
}
}
}
else {
axis = newCases.get(first).getV();
firstP = newCases.get(first).getH();
lastP = newCases.get(last).getH();
for (int h = firstP; h <= lastP; h++) {
if (this.getCase(axis, h).getState() == FREE) {
if (this.isAI) {
this.valide = false;
return;
}
else {
throw new BoardWrongWordPlace(
"Word letters must be horizontaly unified !");
}
}
}
}