Exemplo n.º 1
0
  private boolean moveSapperAndFillFreeCell(Direction direction) {
    walkAt.put(sapper.copy(), getMinesNearSapper());
    direction.change(sapper);

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