module Mazebot

Extended Modules

Defined in:

mazebot.cr
mazebot/dijkstra.cr
mazebot/graph.cr
mazebot/maze.cr
mazebot/node.cr
mazebot/priority_queue.cr

Constant Summary

Domain = "https://api.noopschallenge.com"

Instance Method Summary

Instance Method Detail

def reconstruct_path(node) #

Reconstructs the path based on a Node (usually the goal). Returns path as an Array with start being the first element and goal last.


[View source]
def search(start : Mazebot::Node, goal : Mazebot::Node, &) #

Runs A* search from start to goal and uses block as heuristic function. Returns Array(T) or Nil if no path was found.


[View source]
def solve(size : Int32) : NamedTuple #

[View source]
def solve(maze : Mazebot::Maze) : String #

[View source]