Class SearchableMaze

java.lang.Object
mazealgo.model.algorithms.search.SearchableMaze
All Implemented Interfaces:
ISearchable

public class SearchableMaze extends Object implements ISearchable
Object Adapter that exposes a Maze as an ISearchable. Straight moves (up/down/left/right) cost less than diagonal moves; a diagonal move is only legal if at least one of the two orthogonal cells next to the corner is also open, so the path cannot squeeze through a pinhole between two walls.
  • Constructor Details

    • SearchableMaze

      public SearchableMaze(Maze maze)
  • Method Details