Strategy bugfix

This commit is contained in:
Chris Proctor 2022-05-11 16:23:42 -04:00
parent 1908c440d2
commit 26f3869ec7
1 changed files with 1 additions and 2 deletions

View File

@ -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: