mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
Removed random ai
This commit is contained in:
parent
18c9ccc1c5
commit
d4dbbd9ed5
|
@ -27,15 +27,6 @@ class HumanPlayer(Player):
|
|||
except ValueError:
|
||||
print('Invalid square. Try again.')
|
||||
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):
|
||||
def __init__(self, letter):
|
||||
|
|
Loading…
Reference in New Issue
Block a user