A* search algorithm: Difference between revisions

Line 1,817:
func `$`(cell: Cell): string =
## Return the Unicode string to use for a cell.
if cell in Barriers: "██" else: (if cell in path: " *#" else: " ·")
 
echo "████████████████████"
Line 1,856:
 
████████████████████
██ *# · · · · · · ·██
██ · *# · · · · · ·██
██ · · *# ·██████ ·██
██ · *#██ · · ·██ ·██
██ · *#██ · · ·██ ·██
██ · *#██████████ ·██
██ · · *# · · *# · ·██
██ · · · *# *# · *# *#██
████████████████████
 
Anonymous user