Farfi55 / CookedUp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bots without RecipeRequest assigned remain idle

Farfi55 opened this issue · comments

  • Solution 1:
    Allow multiple Bots to work on a single recipe request.
    When a new recipe request pops up, move one bot to the new one.

  • Solution 2:
    Allow multiple Bots to work on a single recipe request but with different responsabilities.
    Example Alice and Bob (both bots) work on a Mega burger

    • Alice gets assigned half of the ingredients (Bread, MeatPatty, Cheese)
    • Bob gets assigned the other half (Tomato, Cabbage)
    • They both put ingredients in the same plate
  • Solution 3:
    Implement a temporary Recipe request or complete recipe to make the bot work towards something maybe useful later.

Solution 1 is probably the most doable, without creating too much complexity.
Solution 2 requires a major rework of how KO ownership is handled and Bot AI in almost every state.
Solution 3 is also doable, but feels like a hack.

So I think the Strategic AI should be reworked like this:

Step 1:
try to assign every Bot to a different Recipe, if there aren't enough recipes for all Bots then spread the remainig 'unassigned' Bots across the Recipes (always keeping in mind the expected time for recipe)

Step 2:
when new Requests are created, move the Bots with the highest expected time for their current recipe to the new recipe, always trying to minimize the number of players on a single recipe request.

Step 3:
On Recipe Expired or Completed move the now unassigned Bots to any recipe that has no player or if there are now, as per usual spread the bots across recipe requests

Fixed with new Strategic AI