Beispiel #1
0
 def update_challenge(self):
     self.last_challenge = self.active_challenge
     self.active_challenge = SEChallenge.get_by_level(self.active_challenge.level+1)
Beispiel #2
0
 def get_current(self):
     correct = SEChallenge.get_highest()
     if self.active_challenge == None and correct != None:
         if self.last_challenge.level < correct.level:
             self.active_challenge = correct
     return self.active_challenge
Beispiel #3
0
 def __init__(self):
     self.last_challenge = None
     self.active_challenge = SEChallenge.get_lowest()