예제 #1
0
 public function combine(PaintZone $b)
 {
     $c = clone $this;
     foreach ($c->getZone() as $y => $row) {
         foreach ($row as $x => $cell) {
             if ($b->_($x, $y) == '+') {
                 $c->_($x, $y, '+');
             }
         }
     }
     return $c;
 }