class RubyTictactoe::Player
Attributes
marker[RW]
opponent[RW]
Public Class Methods
new(marker)
click to toggle source
# File lib/player.rb, line 5 def initialize(marker) @marker = marker @opponent = nil end
Public Instance Methods
add_marker(board, cell)
click to toggle source
# File lib/player.rb, line 10 def add_marker(board, cell) board.all_cells[cell] = self.marker end