Strategy bugfix
This commit is contained in:
parent
1908c440d2
commit
26f3869ec7
|
@ -5,11 +5,10 @@ class RandomStrategy:
|
|||
"""A Strategy which randomly chooses a move. Not a great choice.
|
||||
"""
|
||||
def __init__(self, game):
|
||||
self.validate_game(game)
|
||||
self.game = game
|
||||
|
||||
def choose_action(self, state):
|
||||
possible_actions = game.get_actions(state)
|
||||
possible_actions = self.game.get_actions(state)
|
||||
return choice(possible_actions)
|
||||
|
||||
class LookaheadStrategy:
|
||||
|
|
Loading…
Reference in New Issue