Module: Mazemap
- Defined in:
- lib/mazemap.rb,
lib/mazemap/graph.rb,
lib/mazemap/version.rb,
lib/mazemap/pathfinder.rb
Overview
Tries to find the shortest path
Defined Under Namespace
Classes: Graph, Pathfinder
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
-
.read_and_search(filename) ⇒ Object
Search for a shortest paths.
Class Method Details
.read_and_search(filename) ⇒ Object
Search for a shortest paths
16 17 18 19 |
# File 'lib/mazemap.rb', line 16 def read_and_search(filename) pathfinder = Pathfinder.new(filename) pathfinder.solution end |