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

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