mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 14:01:12 +00:00
Removed random ai
This commit is contained in:
parent
18c9ccc1c5
commit
d4dbbd9ed5
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user