fix simulation, fix tasklist

This commit is contained in:
s450026 2020-06-09 15:32:39 +02:00
parent df0bf3207c
commit a18927bfb4
2 changed files with 12 additions and 11 deletions

13
main.py
View File

@ -82,12 +82,13 @@ if __name__ == "__main__":
break
if event.key == pygame.K_s:
tree.TasksList('check', [2, 3])
tree.TasksList('eat', [9, 6])
tree.TasksList('order', [4, 8])
tree.TasksList('goToBar', [11, 4])
tree.TasksList('check', [2, 9])
tree.TasksList('eat', [1, 1])
waitPosition = [waiter.X, waiter.Y]
tree.TasksList('check', [2, 3], waitPosition)
tree.TasksList('eat', [9, 6], waitPosition)
tree.TasksList('order', [4, 8], waitPosition)
tree.TasksList('goToBar', [11, 4], waitPosition)
tree.TasksList('check', [2, 9], waitPosition)
tree.TasksList('eat', [1, 1], waitPosition)
queue = tree.ReturnQueueList()
tree.print()
check = 1

View File

@ -1,13 +1,13 @@
______________
______________
__PW_____PW___
_USWP___USWP__
__OWS____OWSI_
__SWP____SWP__
__OWS____OWS__
__PWO____PWO__
_USW____USW___
__SW_____SW___
__OWP____OWP__
__PWS____PWSI_
_USWO___USWO__
__PWS____PWS__
__SWO____SWO__
__OW_____OW___
______________
______________