@@ 165-177 (lines=13) @@ | ||
162 | foreach($this->matrix->matrix() as $y => $row){ |
|
163 | foreach($row as $x => $val){ |
|
164 | ||
165 | if($x <= $this->moduleCount - 7){ |
|
166 | if( |
|
167 | $this->matrix->check($x , $y) |
|
168 | && !$this->matrix->check($x + 1, $y) |
|
169 | && $this->matrix->check($x + 2, $y) |
|
170 | && $this->matrix->check($x + 3, $y) |
|
171 | && $this->matrix->check($x + 4, $y) |
|
172 | && !$this->matrix->check($x + 5, $y) |
|
173 | && $this->matrix->check($x + 6, $y) |
|
174 | ){ |
|
175 | $penalty += 40; |
|
176 | } |
|
177 | } |
|
178 | ||
179 | if($y <= $this->moduleCount - 7){ |
|
180 | if( |
|
@@ 179-191 (lines=13) @@ | ||
176 | } |
|
177 | } |
|
178 | ||
179 | if($y <= $this->moduleCount - 7){ |
|
180 | if( |
|
181 | $this->matrix->check($x, $y) |
|
182 | && !$this->matrix->check($x, $y + 1) |
|
183 | && $this->matrix->check($x, $y + 2) |
|
184 | && $this->matrix->check($x, $y + 3) |
|
185 | && $this->matrix->check($x, $y + 4) |
|
186 | && !$this->matrix->check($x, $y + 5) |
|
187 | && $this->matrix->check($x, $y + 6) |
|
188 | ){ |
|
189 | $penalty += 40; |
|
190 | } |
|
191 | } |
|
192 | ||
193 | } |
|
194 | } |