:X
:O
9 10 11
# File 'lib/player_symbols.rb', line 9 def self.all [X.to_s, O.to_s] end
5 6 7
# File 'lib/player_symbols.rb', line 5 def self.opponent(symbol) symbol == X ? O : X end
13 14 15
# File 'lib/player_symbols.rb', line 13 def self.to_symbol(value) value == X.to_s ? X : O end