Created
December 23, 2013 02:24
-
-
Save tarynsauer/8090966 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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