Пример #1
0
 @Override
 public void moveRight() {
   for (Cell cell : cells) {
     cell.setX(cell.getX() + 1);
   }
 }
Пример #2
0
 @Override
 public void moveLeft() {
   for (Cell cell : cells) {
     cell.setX(cell.getX() - 1);
   }
 }