Class: SetMove

Inherits:
Object
  • Object
show all
Includes:
HasHints
Defined in:
lib/software_challenge_client/set_move.rb

Instance Attribute Summary collapse

Attributes included from HasHints

#hints

Instance Method Summary collapse

Methods included from HasHints

#add_hint

Constructor Details

#initialize(piece, destination) ⇒ SetMove

Returns a new instance of SetMove.



10
11
12
13
14
# File 'lib/software_challenge_client/set_move.rb', line 10

def initialize(piece, destination)
  @piece = piece
  @destination = destination
  @hints = []
end

Instance Attribute Details

#destinationObject (readonly)

Returns the value of attribute destination.



8
9
10
# File 'lib/software_challenge_client/set_move.rb', line 8

def destination
  @destination
end

#pieceObject (readonly)

Returns the value of attribute piece.



7
8
9
# File 'lib/software_challenge_client/set_move.rb', line 7

def piece
  @piece
end