Skip to content
Snippets Groups Projects
Commit dbe35530 authored by Florian Schröder's avatar Florian Schröder
Browse files

Rename overcooked_gui.py to gui.py

Renamed `overcooked_gui.py` to `gui.py` in multiple files across the project including README.md, study_server.py, __main__.py, and __init__.py. This modification will ensure consistency in referencing the graphic interface script.
parent e8402865
No related branches found
No related tags found
1 merge request!67Resolve "File, dir renaming"
Pipeline #47413 passed
......@@ -37,13 +37,13 @@ You can also start the **Game Server** and the **PyGame GUI** individually in di
```bash
python3 cooperative_cuisine/game_server.py --url "localhost" --port 8000 --manager_ids SECRETKEY1 SECRETKEY2
python3 cooperative_cuisine/pygame_2d_vis/overcooked_gui.py --url "localhost" --port 8000 --manager_ids SECRETKEY1
python3 cooperative_cuisine/pygame_2d_vis/gui.py --url "localhost" --port 8000 --manager_ids SECRETKEY1
```
You can start also several GUIs.
```bash
python3 cooperative_cuisine/pygame_2d_vis/overcooked_gui.py --url "localhost" --port 8000 --manager_ids SECRETKEY2
python3 cooperative_cuisine/pygame_2d_vis/gui.py --url "localhost" --port 8000 --manager_ids SECRETKEY2
```
You can replace the GUI with your own GUI (+ study server/matchmaking server).
......
......@@ -51,7 +51,7 @@ You can also start the **Game Server** and the **PyGame GUI** individually in di
```bash
python3 cooperative_cuisine/game_server.py --url "localhost" --port 8000 --manager_ids SECRETKEY1 SECRETKEY2
python3 cooperative_cuisine/pygame_2d_vis/overcooked_gui.py --url "localhost" --port 8000 --manager_ids SECRETKEY1
python3 cooperative_cuisine/pygame_2d_vis/gui.py --url "localhost" --port 8000 --manager_ids SECRETKEY1
```
## Connect with agent and receive game state
......
......@@ -30,7 +30,7 @@ def start_study_server(cli_args):
def start_pygame_gui(cli_args):
from cooperative_cuisine.pygame_2d_vis.overcooked_gui import main
from cooperative_cuisine.pygame_2d_vis.gui import main
main(
cli_args.study_url,
......
"""
# Usage
- Set `CONNECT_WITH_STUDY_SERVER` in overcooked_gui.py to True.
- Set `CONNECT_WITH_STUDY_SERVER` in gui.py to True.
- Run this script. Copy the manager id that is printed
- Run the game_server.py script with the manager id copied from the terminal
```
python game_server.py --manager_ids COPIED_UUID
```
- Run 2 overcooked_gui.py scripts in different terminals. For more players change `NUMBER_PLAYER_PER_ENV` and start more guis.
- Run 2 gui.py scripts in different terminals. For more players change `NUMBER_PLAYER_PER_ENV` and start more guis.
The environment starts when all players connected.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment