From e7e600a65d07a7384098883264b7525250599cdc Mon Sep 17 00:00:00 2001 From: karoel2 Date: Mon, 29 Jun 2020 02:53:43 +0200 Subject: [PATCH] display update --- __pycache__/choice_tree.cpython-36.pyc | Bin 3984 -> 3990 bytes __pycache__/customertree.cpython-36.pyc | Bin 0 -> 1180 bytes __pycache__/data.cpython-36.pyc | Bin 6597 -> 6603 bytes __pycache__/learning_db.cpython-36.pyc | Bin 0 -> 4046 bytes main.py | 88 +++++++++++++++++++----- 5 files changed, 71 insertions(+), 17 deletions(-) create mode 100644 __pycache__/customertree.cpython-36.pyc create mode 100644 __pycache__/learning_db.cpython-36.pyc diff --git a/__pycache__/choice_tree.cpython-36.pyc b/__pycache__/choice_tree.cpython-36.pyc index 60c9559b9399eb2d281e2eeefb9eff3d4c47a8a0..f763b4425386894667e0ed63bb8804a4ee487692 100644 GIT binary patch delta 58 zcmbOrKTV#^n3tE!^3z7PAVyVd{m|mnqGJ8*#G?G1%#_69s>E!4m(=3ylKcYw#7zCP N%)G>$&E<@ed;lP#6I1{I delta 52 zcmbOxKS7?&n3tC;^Z7=$AVzsp{fzwFRQ-a?{E{O5fYO|T%o6>?OkE=j12bI%1H;X= HjFNl+pL`Eq diff --git a/__pycache__/customertree.cpython-36.pyc b/__pycache__/customertree.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..41e99e175c8fad057887cb5527cf4106b469f691 GIT binary patch literal 1180 zcma)+%Wl&^6ozLK$8j!B(n4>vr8igviKZ$mqzZwkDs=;kmdyweP3)6&l5uR!I91zi zUxEcMz$k7!RbfT%f}E1E#mPxUj1Hjtwmpe!cHqyT#UOZ=(MX7Dblu=xdRx7pt2$#K<37i zv@g=k3Anz%=|lvXa|zgS`f(g)r4VNssR}MmnKwz*OsbpYo76A~Upb;$nA*>ooA7bS zb>1g^%o@6D#Y{w5J?XHS=me0^DJsRmsq$ zIfbhf)R;@Xuf>&eO|L%h8M9Q`pp`j_;t*t4gM=VOgOq2wm1Car6U8I=-;J?KFwtp@ zH)vMr^B|3txB=FfS=o(yLwvqwHMGp2H0vb&f%g(m3gG(di4cuJi8n<>A5ML1(@v qE!4m(=3ylKcYw#7zCP N%)G>$&4%1l_y9FL6XE~> delta 52 zcmX?YeAJlDn3tC;^Z7?OkE=j12bI%1H;Yc H+*9}fvOEv$ diff --git a/__pycache__/learning_db.cpython-36.pyc b/__pycache__/learning_db.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f186ea42443125a642ed23ce8e5c3d05e939ccc GIT binary patch literal 4046 zcmds4&2G~`5VjLLe@)UfO-d+K;##4Ss$4)IL@69VqDUYVkps~-vvI6Ac4RxPnumaw z;KG~q8TQH>a6&yXlWn@rk5Eb~5t>iCnVtD&=9}G38QRZr z1>dro1~&yd+z41_bq!+wA>uHN8!`vJi4MjR!G!ssG%LRH{d-HP`m?2!Uh?owVvtw> zN%(s#);EEj$Jb)@mSzrolQ^ViAPv)4HXi9AmC^r6jnh*|{xb2R`cW^wi2<1_V+BS~ zxg*a?q}nW>%23wgJgT7T&1=o-JFjn6k6F1_<6#AS6BDwKgFLL_BG4&|ryQ>A&_mGz ztU(d~$)81g9ZEx#p^T?B^p=Lc0`9BGEaSdvizwnMT-GaK4eCx& z*(r}FsY>>x9_yGvJjy0Jk2Om}eUwY8C+EmvPx29ubdW9UQ8lTX=8&M-WDlv6rjYZ} z9niFLGTMnjzEM5JQ+G<8C{A5Tow`4ogKC#iy_|#Yc^%&*0UKku1%wLRhD}@}t1|S; zSae^6H{N$+qJyd&?KiSFQC(#Mvfdp~*uV*B4&o{+8mAmOtEjRRPgyFeEEOe7s!&m7 zjq~J*v_*k4;hQAk?gwpqOXzQfUaOn?(09VRdC;~U5Qzg8^qC`)uN-bMH$2zxpX)n# zJm#+LS|YvQ3c2rko-1O9o``?qfygzT{!t@fE}YoSwlIT`vyMo%y|4iurnFi2sP9|c z7ire(IlR%cxk%eh-e~%qb%oip2LmROC#=&{BS!Z5*Bv>JI9&DMZ)WcEjtuO zlLc*Igm#w;>>>>>> update if restaurant.tiles[waiter.y][waiter.x].clientState == "wait" and waiter.food and not waiter.orders: restaurant.tiles[waiter.y][waiter.x].clientState = "eat" restaurant.tiles[waiter.y][waiter.x].client = 20 @@ -523,6 +577,7 @@ class Agent: restaurant.tiles[waiter.y][waiter.x].clientState = "eat" restaurant.tiles[waiter.y][waiter.x].client = 20 self.food = False + show_order(waiter.photos.pop()) self.idle = True if IDLE == "kitchen": self.astar(KITCHEN) @@ -592,7 +647,6 @@ def drawScreen(): textsurface = font.render(str(ticks), False, (255, 255, 255)) display.blit(textsurface, (WIDTH * 32 + 80, 332)) - restaurant = Restaurant(0, 0, 0, 0) waiter = Agent(1,1) clientTime = 10