Class: Binary_Puzzle_Solver::Move

Inherits:
Object
  • Object
show all
Defined in:
lib/binary_puzzle_solver/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Move

Returns a new instance of Move.



157
158
159
160
161
162
# File 'lib/binary_puzzle_solver/base.rb', line 157

def initialize (params)
    @coord = params[:coord]
    @dir = params[:dir]
    @reason = params[:reason]
    @val = params[:val]
end

Instance Attribute Details

#coordObject (readonly)

Returns the value of attribute coord.



156
157
158
# File 'lib/binary_puzzle_solver/base.rb', line 156

def coord
  @coord
end

#dirObject (readonly)

Returns the value of attribute dir.



156
157
158
# File 'lib/binary_puzzle_solver/base.rb', line 156

def dir
  @dir
end

#reasonObject (readonly)

Returns the value of attribute reason.



156
157
158
# File 'lib/binary_puzzle_solver/base.rb', line 156

def reason
  @reason
end

#valObject (readonly)

Returns the value of attribute val.



156
157
158
# File 'lib/binary_puzzle_solver/base.rb', line 156

def val
  @val
end