class Move

Attributes

column[R]
player_value[R]
row[R]

Public Class Methods

new(row,column, player_value = 1) click to toggle source
# File lib/board.rb, line 84
def initialize(row,column, player_value = 1)
  @row, @column, @player_value = row, column, player_value
end

Public Instance Methods

==(other) click to toggle source
# File lib/board.rb, line 88
def ==(other)
  return other.is_a?(Move) && self.row == other.row && self.column == other.column
end