Class: Move

Inherits:
Object
  • Object
show all
Defined in:
lib/nick_tac_toe/move.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(position, rating) ⇒ Move

Returns a new instance of Move.



3
4
5
6
# File 'lib/nick_tac_toe/move.rb', line 3

def initialize(position, rating)
  @position = position
  @rating = rating
end

Instance Attribute Details

#positionObject

Returns the value of attribute position.



2
3
4
# File 'lib/nick_tac_toe/move.rb', line 2

def position
  @position
end

#ratingObject

Returns the value of attribute rating.



2
3
4
# File 'lib/nick_tac_toe/move.rb', line 2

def rating
  @rating
end