Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created December 23, 2013 02:24
Show Gist options
  • Save tarynsauer/8090966 to your computer and use it in GitHub Desktop.
Save tarynsauer/8090966 to your computer and use it in GitHub Desktop.
class AIPlayer < Player
def make_move(board)
ai = AI.new(self)
cell = ai.computer_move(board, self)
add_marker(board, cell)
end
end
class ComputerPlayer < Player
def make_move(board)
cell = board.random_cell
add_marker(board, cell)
end
end
class HumanPlayer < Player; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment