Removed random ai

This commit is contained in:
P Gautam 2022-10-07 19:11:28 +05:30 committed by GitHub
parent 18c9ccc1c5
commit d4dbbd9ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,15 +27,6 @@ class HumanPlayer(Player):
except ValueError: except ValueError:
print('Invalid square. Try again.') print('Invalid square. Try again.')
return val return val
class RandomComputerPlayer(Player):
def __init__(self, letter):
super().__init__(letter)
def get_move(self, game):
square = random.choice(game.available_moves())
return square
class SmartComputerPlayer(Player): class SmartComputerPlayer(Player):
def __init__(self, letter): def __init__(self, letter):