Sha256: 7795cd719cd11f8424d3e9fd2c7d2bae823fdcdc66954f9e26287ed661c676fe
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
# frozen_string_literal: true module Checkers class Move attr_reader :start_square, :end_square def initialize(start_square, end_square) @start_square = start_square @end_square = end_square end def ==(other) start_square == other.start_square && end_square == other.end_square end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
checkers-game-0.1.0 | lib/checkers/move.rb |