A* pathfinding visualizer in Ruby
A* Visualizer is an interactive application to visualize the
A* pathfinding algorithm
in a grid with obstacles. The heuristic function used is the
Manhattan distance.
It uses the Gosu game development library.
To install this ruby gem, use the gem
command:
gem install astar_visualizer
To launch the A* Visualizer, use this command:
astar-visualizer
You can also use the irb
environment:
require 'astar_visualizer'
AStar.new.show
You can also choose the size of the grid:
astar-visualizer SIZE
SIZE must be a number between 10 and 100 (default: 50).
It will open a window with the grid. Then: