A* priority: moves + Manhattan distance.
(self)
| 22 | return self.priority() < other.priority() |
| 23 | |
| 24 | def priority(self) -> int: |
| 25 | """A* priority: moves + Manhattan distance.""" |
| 26 | return self.moves + self.manhattan() |
| 27 | |
| 28 | def manhattan(self) -> int: |
| 29 | """Calculate Manhattan distance using actual goal positions.""" |