1.1 --- a/icfp-model/src/main/java/ru/bosony/model/mine/Mine.java Mon Jul 16 04:36:47 2012 +0400
1.2 +++ b/icfp-model/src/main/java/ru/bosony/model/mine/Mine.java Mon Jul 16 13:08:03 2012 +0400
1.3 @@ -220,6 +220,13 @@
1.4 return cells;
1.5 }
1.6
1.7 + public Set<Cell> getAdjacentCells(Cell cell) {
1.8 + Set<Cell> cells = new HashSet<Cell>();
1.9 + for (Coordinate coordinate : cell.getCoordinate().getAdjacentCoordinates())
1.10 + cells.add(getCell(coordinate));
1.11 + return cells;
1.12 + }
1.13 +
1.14 public Set<Cell> findCells(CellContent content) {
1.15 Set<Cell> finded = new HashSet<Cell>();
1.16 for (int y = sizeY - 1; y >= 0; y--) {