-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refine the path during backtracking
line para graph parag raph In the example above, the start point is on `line` and the target is a blank line after the second paragraph. For simplicity pretend that the only available motions are j and }. Preiously, the pathfinder would have returned j2}. This is because j comes first in the settings and when } is tested, it goes to the same location with the same cost and was ignored. Now, both j and } will be stored in a list called `incoming_motions` attached to that node. When we reach the target, we go back and choose the best motion from each of those lists, meaning that 3} will be the output. Fixes #10
- Loading branch information
Showing
1 changed file
with
94 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters