From 45e29a3fcdc42192bdb6045fd663c0176b434d3c Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 30 Oct 2015 19:15:05 -0400 Subject: [PATCH] fix syntax error --- src/gamemodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamemodes.py b/src/gamemodes.py index 4d2defc..d91d165 100644 --- a/src/gamemodes.py +++ b/src/gamemodes.py @@ -820,7 +820,7 @@ class SleepyMode(GameMode): self.step = 0 self.prev_direction = None for i in range(0, 3): - dir2 = [d for d in directions where d != self.prev_direction] + dir2 = [d for d in directions if d != self.prev_direction] self.correct[i] = random.choice(directions) self.fake1[i] = random.choice(directions) self.fake2[i] = random.choice(directions)