Zaktualizuj 'main.py'

This commit is contained in:
Dominik Zawadzki 2020-05-19 16:19:34 +00:00
parent 9a6768a89d
commit fbf6bc089d

10
main.py
View File

@ -4,6 +4,7 @@ import secrets
from src.graphics import * from src.graphics import *
from src.rabbit import Rabbit from src.rabbit import Rabbit
from src.waiter import * from src.waiter import *
from src.decisionTree import *
if __name__ == "__main__": if __name__ == "__main__":
# SETUP # SETUP
@ -34,6 +35,15 @@ if __name__ == "__main__":
sys.exit() sys.exit()
break break
if event.key == pygame.K_s:
tree.TasksList('check', [10,3])
tree.TasksList('eat', [5,12])
tree.TasksList('order', [12,4])
tree.TasksList('goToBar', [10,10])
tree.TasksList('check', [3,4])
tree.TasksList('eat', [10,5])
tree.print()
if event.key == pygame.K_r: if event.key == pygame.K_r:
temp = False temp = False
while not temp: while not temp: