Skip to content
Snippets Groups Projects
  • Florian Schröder's avatar
    ed8a0ad8
    Add 'game_ended_step' to config files · ed8a0ad8
    Florian Schröder authored
    The 'game_ended_step' has been added to both 'environment_config_no_validation.yaml' and 'environment_config.yaml' files. This state will trigger at the end of each game, and now it'll be recognized by the system.
    ed8a0ad8
    History
    Add 'game_ended_step' to config files
    Florian Schröder authored
    The 'game_ended_step' has been added to both 'environment_config_no_validation.yaml' and 'environment_config.yaml' files. This state will trigger at the end of each game, and now it'll be recognized by the system.
environment_config_no_validation.yaml 6.05 KiB
plates:
  clean_plates: 2
  dirty_plates: 1
  plate_delay: [ 5, 10 ]
  # range of seconds until the dirty plate arrives.

game:
  time_limit_seconds: 300
  undo_dispenser_pickup: true
  validate_recipes: false


layout_chars:
  _: Free
  hash: Counter  # #
  A: Agent
  pipe: Extinguisher
  P: PlateDispenser
  C: CuttingBoard
  X: Trashcan
  $: ServingWindow
  S: Sink
  +: SinkAddon
  at: Plate  # @ just a clean plate on a counter
  U: Pot  # with Stove
  Q: Pan  # with Stove
  O: Peel  # with Oven
  F: Basket  # with DeepFryer
  T: Tomato
  N: Onion  # oNioN
  L: Lettuce
  K: Potato  # Kartoffel
  I: Fish  # fIIIsh
  D: Dough
  E: Cheese  # chEEEse
  G: Sausage  # sausaGe
  B: Bun
  M: Meat
  question: Counter  # ? mushroom
  ↓: Counter
  ^: Counter
  right: Counter
  left: Counter
  wave: Free  # ~ Water
  minus: Free  # - Ice
  dquote: Counter  # " wall/truck
  p: Counter # second plate return ??


orders:
  meals:
    all: true
    # if all: false -> only orders for these meals are generated
    # TODO: what if this list is empty?
    list:
      #      - TomatoSoup
      #      - OnionSoup
      #      - Salad
      - FriedFish
  order_gen_class: !!python/name:cooperative_cuisine.orders.RandomOrderGeneration ''
  # the class to that receives the kwargs. Should be a child class of OrderGeneration in orders.py
  order_gen_kwargs:
    order_duration_random_func:
      # how long should the orders be alive
      # 'random' library call with getattr, kwargs are passed to the function
      func: uniform
      kwargs:
        a: 40
        b: 60
    max_orders: 6