class ConnectFourCli::Checker

Attributes

color[R]

Public Class Methods

new(color) click to toggle source
# File lib/connect_four_cli/checker.rb, line 8
def initialize(color)
  @color = color
end

Public Instance Methods

==(other_checker) click to toggle source
# File lib/connect_four_cli/checker.rb, line 12
def ==(other_checker)
  color == other_checker.color
end
checker?() click to toggle source
# File lib/connect_four_cli/checker.rb, line 20
def checker?
  true
end
display() click to toggle source
# File lib/connect_four_cli/checker.rb, line 16
def display
  "O"
end