Beispiel #1
0
  private boolean moveSapperAndFillFreeCell(Direction direction) {
    walkAt.put(sapper.copy(), getMinesNearSapper());
    direction.change(sapper);

    boolean wasHere = walkAt.containsKey(sapper.copy());
    return !wasHere;
  }
Beispiel #2
0
 @Override
 public Point getCellPossiblePosition(Direction direction) {
   return direction.change(sapper.copy());
 }