A* search algorithm: Difference between revisions
Content added Content deleted
Line 1,817: | Line 1,817: | ||
func `$`(cell: Cell): string = |
func `$`(cell: Cell): string = |
||
## Return the Unicode string to use for a cell. |
## Return the Unicode string to use for a cell. |
||
if cell in Barriers: "██" else: (if cell in path: " |
if cell in Barriers: "██" else: (if cell in path: " #" else: " ·") |
||
echo "████████████████████" |
echo "████████████████████" |
||
Line 1,856: | Line 1,856: | ||
████████████████████ |
████████████████████ |
||
██ |
██ # · · · · · · ·██ |
||
██ · |
██ · # · · · · · ·██ |
||
██ · · |
██ · · # ·██████ ·██ |
||
██ · |
██ · #██ · · ·██ ·██ |
||
██ · |
██ · #██ · · ·██ ·██ |
||
██ · |
██ · #██████████ ·██ |
||
██ · · |
██ · · # · · # · ·██ |
||
██ · · · |
██ · · · # # · # #██ |
||
████████████████████ |
████████████████████ |
||