class TicTacToe::Player
Attributes
name[RW]
symbol[RW]
Public Class Methods
new(name, options = { computer: false })
click to toggle source
# File lib/tic_tac_toe/player.rb, line 6 def initialize(name, options = { computer: false }) @name = name @is_computer = options[:computer] end
Public Instance Methods
computer?()
click to toggle source
# File lib/tic_tac_toe/player.rb, line 11 def computer? @is_computer end