From 26f3869ec7682f06a3cf13900c4c6914bee2ba02 Mon Sep 17 00:00:00 2001 From: Chris Proctor Date: Wed, 11 May 2022 16:23:42 -0400 Subject: [PATCH] Strategy bugfix --- strategy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: