Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dev/pacmath.activity/gameMain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/pacmath.activity/gameMain.py b/dev/pacmath.activity/gameMain.py
index 7449ef4..a2e887b 100644
--- a/dev/pacmath.activity/gameMain.py
+++ b/dev/pacmath.activity/gameMain.py
@@ -58,6 +58,8 @@ class gameMain:
self.maze = mazeSetup(self.screen, MAZE_SIZE) # create an instance of the
# maze->call the constructor
+ self.operation = random.sample('x+-/', 1)
+ self.questGen = questionGenerator( self.operation, 2, 12 )
self.QandA = question(self.screen, self.questGen.getQuestionSet())
self.ghost1 = ghostMovement((self.screen.get_rect().x, self.screen.get_rect().y), 0, self.QandA.questions[0])
self.ghost2 = ghostMovement((self.screen.get_rect().x, self.screen.get_rect().y), 1, self.QandA.questions[1])