class TictactoeGto::Box

Attributes

value[RW]

Public Class Methods

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

Public Instance Methods

display() click to toggle source
# File lib/tictactoe_gto.rb, line 12
def display
  print "| #{@value} |"
end
is_empty?() click to toggle source
# File lib/tictactoe_gto.rb, line 16
def is_empty?
  if @value == ' '
    return true
  else
    return false
  end
end