Farfi55 / CookedUp

Unity Game inspired by Overcooked and PlateUp! with Bots AI using ASP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rework Bots Get Ingredient flow

Farfi55 opened this issue · comments

  1. select final ingredient to add to plate
    1. if final ingredient is directly available then skip to step 7
  2. get base ingredient to transform into final ingredient
  3. select an available work counter to work on base ingredient
    1. if no work counter is available then trash base ingredient and restart
  4. place base ingredient on work counter
    1. if work counter is occupied then go to step 3
  5. work on base ingredient
    1. if base ingredient is not available then restart
  6. pick up final ingredient
    1. if final ingredient is not available then restart
  7. place final ingredient on plate
    1. if plate is occupied then place final ingredient on a clear counter
    2. else if no clear counter is available then thrash final ingredient
  8. repeat from step 1 until plate has all final ingredients required

Get Ingredient has been reworked and seems to be functioning pretty good, it is not as rigid as the first implementation.

example: if the player already has a final ingredient in hands, it will only add that ingredient to the plate, without executing the whole sequence from the start.

This applies to every point of the sequence.

I've also used distance to chose the 'best' counters to interact with