Project

a-star

0.0
No commit activity in last 3 years
No release in over 3 years
A* Search Algorithm for PNG images
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.3.8, ~> 1.3
 Project Readme

A-Star

A* path finding algorithm for images, in Ruby.

Solved maze image.

Installation

First install the gem, either online:

gem install a-star

or build it from source: Clone and enter repository:

git clone https://github.com/Demonstrandum/A-Star.git && cd A-Star
gem build a-star.gemspec
gem install a-star-*

Usage

To run the program itself:

a-star ~/Pictures/yourImage.png

This will solve the maze and make and image with the suffix "-solved"
e.g. yourImage-solved.png in the same location as the input image.

Maze PNG requirements

The start and end points of the maze must be from top to bottom.
It's highly recommended that the maze's walls and paths are 1 pixel wide as the program draws and reads the paths as one pixel.