Guest User

starter CalM remasterisé

a guest
Jun 30th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1.     def play(self):
  2.         myChef: Player = self.players[0]
  3.         # GAME LOGIC
  4.         # fetch a dish, pick ice cream and drop the dish on an empty table
  5.         if not myChef.item.has_plate:
  6.             self.use(self.Dishwasher.pos)
  7.         elif ICE_CREAM not in myChef.item.content:
  8.             self.use(self.IceCream.pos)
  9.         elif BLUEBERRIES not in myChef.item.content:
  10.             self.use(self.Blueberry.pos)
  11.         else:
  12.             # once ready, put it on the first empty table for now
  13.             self.use(self.Window.pos)
Advertisement
Add Comment
Please, Sign In to add comment