| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 5 | public static function printSolution(TerrainCost $terrainCost, Position $start, Position $goal): void |
|
| 10 | { |
||
| 11 | 5 | $domainLogic = new DomainLogic($terrainCost); |
|
| 12 | 5 | $aStar = new AStar($domainLogic); |
|
| 13 | |||
| 14 | 5 | $solution = $aStar->run($start, $goal); |
|
| 15 | |||
| 16 | 5 | $printer = new SequencePrinter($terrainCost, $solution); |
|
| 17 | |||
| 18 | 5 | $printer->printSequence(); |
|
| 19 | 5 | } |
|
| 21 |