class Checkers::Move
Attributes
end_square[R]
start_square[R]
Public Class Methods
new(start_square, end_square)
click to toggle source
# File lib/checkers/move.rb, line 7 def initialize(start_square, end_square) @start_square = start_square @end_square = end_square end
Public Instance Methods
==(other)
click to toggle source
# File lib/checkers/move.rb, line 12 def ==(other) start_square == other.start_square && end_square == other.end_square end