class Mazinator::Cell

Attributes

col[R]
row[R]
visited[RW]
walls[RW]

Public Class Methods

new(row, col) click to toggle source
# File lib/mazinator/cell.rb, line 8
def initialize(row, col)
  @row = row
  @col = col
  @walls = {left: true, right: true, up: true, down: true}
  @visited = false
end

Public Instance Methods

visited?() click to toggle source
# File lib/mazinator/cell.rb, line 15
def visited?
  self.visited
end