HumanCompatibleAI / overcooked-demo

Web application where humans can play Overcooked with AI agents.
55 stars 26 forks source link

adds integration with dynamic orders #23

Open bmielnicki opened 4 years ago

bmielnicki commented 4 years ago

Allows to work with dynamic_orders change. Should be merged along with PR in overcooked_ai repo https://github.com/HumanCompatibleAI/overcooked_ai/pull/57 . Fully backward compatible (works with https://github.com/HumanCompatibleAI/overcooked_ai/tree/master, works with https://github.com/bmielnicki/overcooked_ai/tree/dynamic_orders), unless you use layout that uses dynamic orders nothing really changes.

backward_compatibility

If you use dynamic orders timer for order is displayed below recipe icon. Colour indicates if order is bonus - yellow for ordinary order and green for bonus_order.

new_view

Except that I did minor cleaning in the code. Code was tested by me using changes in Dockerfile to change overcooked_ai repos urls and by editing config to include dynamic orders layouts (this PR does not includes that changes). Without adding dynamic orders layouts to config this PR does nothing from user perspective except it allows to work with dynamic orders PR (change in game.py allows that).