diff --git a/strategy.py b/strategy.py index 7702ed0..7e6ba8d 100644 --- a/strategy.py +++ b/strategy.py @@ -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: