Sha256: b42dd3205ed82bf0e1e88f4c16c4c8c5ede85a13005756c4d9df8bcf804a1494
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.6.0 | lib/games/tictactoe/square.rb |