Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function execute(Grid $grid)
 {
     foreach ($grid->getCells() as $cell) {
         if (!$cell->isEmpty()) {
             continue;
         }
         if ($this->checkCell($cell)) {
             return true;
         }
     }
     return false;
 }
Exemple #2
0
 public function __construct(array $grid)
 {
     $this->initContainer();
     $this->grid = Grid::fromArray($grid);
 }