use of aima.core.util.datastructure.XYLocation in project aima-java by aimacode.
the class EightPuzzleBoard method setBoard.
public void setBoard(List<XYLocation> locs) {
int count = 0;
for (int i = 0; i < locs.size(); i++) {
XYLocation loc = locs.get(i);
this.setValue(loc.getXCoOrdinate(), loc.getYCoOrdinate(), count);
count = count + 1;
}
}
Aggregations