diff options
author | Michael Kitson <msk5293@rit.edu> | 2010-11-11 23:23:28 (GMT) |
---|---|---|
committer | Michael Kitson <msk5293@rit.edu> | 2010-11-11 23:23:28 (GMT) |
commit | aede57a60d19c9d9a601857d482b394572317a0f (patch) | |
tree | 32c6beaf11b549d357112529846a3fea4e1b6bdd | |
parent | f1a120114b67fdbfc774cf538be1d49096b41b0f (diff) |
Random operation type with each level advancement
-rw-r--r-- | dev/pacmath.activity/gameMain.py | 2 |
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]) |