Class: MazeSolver::Maze
- Inherits:
-
Object
- Object
- MazeSolver::Maze
- Defined in:
- lib/maze_solver/maze.rb
Instance Attribute Summary collapse
-
#maze ⇒ Object
readonly
Class which Represent the maze.
Instance Method Summary collapse
-
#initialize(maze) ⇒ Maze
constructor
A new instance of Maze.
- #solve ⇒ Object
Constructor Details
#initialize(maze) ⇒ Maze
Returns a new instance of Maze.
9 10 11 12 13 14 |
# File 'lib/maze_solver/maze.rb', line 9 def initialize(maze) @maze = maze @closed = [] # Already proccessed set_start_and_goal end |
Instance Attribute Details
#maze ⇒ Object (readonly)
Class which Represent the maze
7 8 9 |
# File 'lib/maze_solver/maze.rb', line 7 def maze @maze end |