Commits on Source (6)
-
Florian Schröder authored
A logging functionality has been added to record participant connections in the study_server.py. The logs, which include the participant's IP, environment ID, level info, and player info, are stored in the directory specified in the study_config.yaml file. Moreover, the participant's host IP is now provided when retrieving their game connection.
-
Florian Schröder authored
The update modifies the get_participant_game_connection method in the study server. Now, the method uses "Test" as the default host if the request client is None. This ensures that the functionality will not break when dealing with test or invalid client requests.
-
Florian Schröder authored
Moved the creation of argparse.ArgumentParser objects used to parse command line arguments into a separate module, `argument_parser.py`. This includes organizing all the add_argument calls into specific functions within this new module, in order to increase code readability, reusability and organization within the argument parsing codebase. All existing usages have been updated accordingly.
-
Florian Schröder authored
With this commit, the game now supports SSL connections. In addition, the argument parsing workflow was fundamentally improved to provide a clearer, better-structured usage of command line arguments for different functionalities. It also includes updates to the help documentations - now, each of these functionalities are accessible as subcommands with their own help messages. A minor update was also made to the test suite to reflect these changes.
-
Florian Schröder authored
# Conflicts: # CHANGELOG.md # cooperative_cuisine/pygame_2d_vis/gui.py
-
Florian Schröder authored
Resolve "Complete Cooperative Cousine Terminal Command" Closes #113 See merge request scs/cocosy/overcooked-simulator!90
Showing
- CHANGELOG.md 7 additions, 0 deletionsCHANGELOG.md
- README.md 4 additions, 4 deletionsREADME.md
- cooperative_cuisine/__init__.py 9 additions, 6 deletionscooperative_cuisine/__init__.py
- cooperative_cuisine/__main__.py 108 additions, 52 deletionscooperative_cuisine/__main__.py
- cooperative_cuisine/argument_parser.py 359 additions, 0 deletionscooperative_cuisine/argument_parser.py
- cooperative_cuisine/configs/study/study_config.yaml 2 additions, 0 deletionscooperative_cuisine/configs/study/study_config.yaml
- cooperative_cuisine/game_server.py 3 additions, 7 deletionscooperative_cuisine/game_server.py
- cooperative_cuisine/pygame_2d_vis/drawing.py 15 additions, 31 deletionscooperative_cuisine/pygame_2d_vis/drawing.py
- cooperative_cuisine/pygame_2d_vis/gui.py 19 additions, 21 deletionscooperative_cuisine/pygame_2d_vis/gui.py
- cooperative_cuisine/pygame_2d_vis/video_replay.py 51 additions, 114 deletionscooperative_cuisine/pygame_2d_vis/video_replay.py
- cooperative_cuisine/study_server.py 48 additions, 24 deletionscooperative_cuisine/study_server.py
- cooperative_cuisine/utils.py 0 additions, 135 deletionscooperative_cuisine/utils.py
- setup.py 1 addition, 1 deletionsetup.py
- tests/test_pygame.py 5 additions, 1 deletiontests/test_pygame.py
- tests/test_utils.py 62 additions, 10 deletionstests/test_utils.py
cooperative_cuisine/argument_parser.py
0 → 100644