| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 48 | public function nextCandidate(): Puzzle |
||
| 49 | { |
||
| 50 | $puzzle = $this->search->nextCandidate(); |
||
| 51 | if ( |
||
| 52 | $puzzle->isSolved() && |
||
| 53 | ($cost = $puzzle->movesSoFar()->cost()) < $this->lowestSolutionCost |
||
| 54 | ) { |
||
| 55 | $this->lowestSolutionCost = $cost; |
||
| 56 | } |
||
| 57 | return $puzzle; |
||
| 58 | } |
||
| 60 |