Created
December 3, 2012 15:35
-
-
Save thefonso/4195765 to your computer and use it in GitHub Desktop.
refactored ai player class
This file contains 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 Computer | |
include Algorithm::Regular | |
def move(board) | |
@player_symbol = 'O' | |
puts "computer move..." | |
ai_moves(board) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment