Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- if __name__ == '__main__':
- ratsels = []
- int mom = 0
- while True:
- if ratsels[mom] not None:
- if ratseles[mom].onCheck():
- #Beende erfolgreiches Rätsel
- ratsels[mom].onDestroy()
- if mom - 1 == len(ratsels):
- #TODO: hat gewonnen
- else:
- #nächstes Rätsel
- mom += 1
- #Initialisiere nächstes rätsel
- ratsels[mom].onInit()
- else:
- continue
- else:
- if mom - 1 == len(ratsels):
- #TODO: hat gewonnen
- else:
- mom += 1
- ratsels[mom].onInit()
- time.sleep(100)
- def refreshClock():
- #TODO: Aktualiesiere Uhr
- class ratsel:
- def __init__(self,onInit,onCheck,onDestroy):
- self.onInit = onInit
- self.onCheck = onCheck
- self.onDestroy = onDestroy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement