mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-04-20 11:37:35 +00:00
Removed random ai
This commit is contained in:
parent
18c9ccc1c5
commit
d4dbbd9ed5
@ -28,15 +28,6 @@ class HumanPlayer(Player):
|
|||||||
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):
|
||||||
super().__init__(letter)
|
super().__init__(letter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user