module TTT class Square attr_accessor :value, :display_value def initialize(args) @value = args[:value] @display_value = args[:display_value] end def change_value(new_value) self.value = new_value self.display_value = new_value end def empty? return true unless full? end def full? if value != nil true else false end end end end