Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. import time
  2.  
  3.  
  4.  
  5. if __name__ == '__main__':
  6. ratsels = []
  7. int mom = 0
  8. while True:
  9. if ratsels[mom] not None:
  10. if ratseles[mom].onCheck():
  11. #Beende erfolgreiches Rätsel
  12. ratsels[mom].onDestroy()
  13. if mom - 1 == len(ratsels):
  14. #TODO: hat gewonnen
  15. else:
  16. #nächstes Rätsel
  17. mom += 1
  18. #Initialisiere nächstes rätsel
  19. ratsels[mom].onInit()
  20. else:
  21. continue
  22.  
  23. else:
  24. if mom - 1 == len(ratsels):
  25. #TODO: hat gewonnen
  26. else:
  27. mom += 1
  28. ratsels[mom].onInit()
  29. time.sleep(100)
  30.  
  31. def refreshClock():
  32. #TODO: Aktualiesiere Uhr
  33. class ratsel:
  34. def __init__(self,onInit,onCheck,onDestroy):
  35. self.onInit = onInit
  36. self.onCheck = onCheck
  37. self.onDestroy = onDestroy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement