module Mazemap
Tries to find the shortest path
@author Evgenii Shevchenko @since 0.0.1
Constants
- VERSION
Public Class Methods
read_and_search(filename)
click to toggle source
Search for a shortest paths
@example Run search
>> Mazemap.read_and_search(filename) => [[6, 11], [7, 11], [8, 11], [9, 11], [10, 11]]
# File lib/mazemap.rb, line 16 def read_and_search(filename) pathfinder = Pathfinder.new(filename) pathfinder.solution end
Private Instance Methods
read_and_search(filename)
click to toggle source
Search for a shortest paths
@example Run search
>> Mazemap.read_and_search(filename) => [[6, 11], [7, 11], [8, 11], [9, 11], [10, 11]]
# File lib/mazemap.rb, line 16 def read_and_search(filename) pathfinder = Pathfinder.new(filename) pathfinder.solution end