diff --git a/README.md b/README.md index 9bfe013..2b502f7 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,14 @@ Overcooked-Demo can dynamically load pre-trained agents provided by the user. In If a more complex or custom loading routing is necessary, one can subclass the `OvercookedGame` class and override the `get_policy` method, as done in [DummyOvercookedGame](server/game.py#L420). Make sure the subclass is properly imported [here](server/app.py#L5) +## Use the human vs. human game mode. + +With the Overcooked demo, you can test the interaction between two human players. To do this, you need to deploy this code on the server (https://docs.docker.com/language/python/deploy/). +After successful deployment, the first user should open http://[server_ip_address]/, select the human keyboard input for both players and click on "Create game". If everything has been successful, he will receive a message: "Waiting for game to start". +Another user should open a page at http://[server_ip_address]/psiturk to start the game. + +If you want to run a test on a local computer, you should use "localhost" instead of "server_ip_address" and open the corresponding links in different tabs. + ## Updating Overcooked_ai This repo was designed to be as flexible to changes in overcooked_ai as possible. To change the branch used, use the `OVERCOOKED_BRANCH` environment variable shown above. @@ -70,4 +78,4 @@ Basic game settings can be configured by changing the values in [config.json](se ## Legacy Code -For legacy code compatible with the Neurips2019 submission please see [this](https://github.com/HumanCompatibleAI/overcooked-demo/tree/legacy) branch of this repo. \ No newline at end of file +For legacy code compatible with the Neurips2019 submission please see [this](https://github.com/HumanCompatibleAI/overcooked-demo/tree/legacy) branch of this repo. diff --git a/server/requirements.txt b/server/requirements.txt index dfcae0f..a9810c7 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -1,17 +1,18 @@ certifi==2020.6.20 -click==7.1.2 +click==8.0 dnspython==1.16.0 dill==0.3.2 -Flask==1.1.2 +Flask==2.1.0 Flask-SocketIO==4.3.0 greenlet==0.4.16 -itsdangerous==1.1.0 -Jinja2==2.11.2 -MarkupSafe==1.1.1 +itsdangerous==2.0 +Jinja2==3.1.0 +MarkupSafe==2.0 monotonic==1.5 python-engineio==3.13.0 python-socketio==4.6.0 six==1.15.0 -Werkzeug==1.0.1 +Werkzeug==2.0.3 tensorflow==2.0.3 requests==2.23.0 +protobuf==3.19