class SimpleComputer

Attributes

marker[R]

Public Class Methods

new(marker) click to toggle source
# File lib/simple_computer.rb, line 5
def initialize(marker)
  @marker = marker
end

Public Instance Methods

choose_space(board) click to toggle source
# File lib/simple_computer.rb, line 9
def choose_space(board)
  board.check_available_spaces.sample
end