- Mar 11, 2024
-
-
Florian Schröder authored
The code changes involved updating the system to manage websockets from the server side, which removed the necessity to hardcode the websocket URL. Furthermore, an implementation to configure host and port of the game server was added. This included setup functions and their usage in chat and data exchange servers. Tests were updated to reflect these changes as well.
-
- Mar 09, 2024
-
-
Florian Schröder authored
Various changes have been made in the codebase to improve readability and maintainability. Type hints have been added to the functions and variables for better understanding of the datatypes. Refactoring of some code segments has also been done to make the code more concise and readable. The 'EffectType', 'ItemType' enumerations have been enriched with docstrings for better understanding of the enums. Certain classes have been updated to better follow the single responsibility principle.
-
Florian Schröder authored
Docstrings across classes and functions in different modules have been adjusted for consistency, specifically in how Return and Raise explanations are formatted. This makes the code more readable and uniform. Additionally, the environment name in 'environment.py' has been updated from "overcooked_sim" to "cooperative_cuisine_1".
-
- Mar 08, 2024
-
-
Florian Schröder authored
The refactoring involved creating a new function to handle game server requests for cleaner and more concise code. Changes were also made to the formatting of commit messages for better readability. Invalid game environment configurations are now dealt with accordingly to prevent game errors. Several updates were made to the tests to ensure they accurately measure the performance and functionality of the game.
-
Fabian Heinrich authored
-
- Mar 07, 2024
-
-
Florian Schröder authored
Added docstrings to constructors of several classes in various modules to improve code readability and maintainability. Also, explicit type hints were provided for the fields in these classes aiding in better understanding of the data types used across the codebase.
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Mar 05, 2024
-
-
Fabian Heinrich authored
-
Florian Schröder authored
Enhanced overall code clarity by adding and revising detailed comments, docstrings, and typespecs in various Python modules. Significant changes include refining functionality of effect management in 'effects.py', modifications to use of 'numpy' arrays and functions in 'movement.py', as well as adjustments to handling hooks. Additionally, minor updates in 'configs/study/level1/level1_config.yaml' and 'counter_factory.py' were made.
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Mar 04, 2024
-
-
Fabian Heinrich authored
-
Florian Schröder authored
The argument names in the main function calls within study_server.py and game_server.py were updated for clarity. These changes better reflect their function within these scripts, making the code easier to understand and maintain. The modifications primarily involve changing 'url' and 'port' to 'game_url' and 'game_port', and 'port' to 'study_port'.
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Feb 29, 2024
-
-
Florian Schröder authored
Action, ActionType, and InterActionData classes have been moved from the environment module into a separate file named action.py. All imports have been adjusted to reflect this change. This provides a clearer structure and improves modularity in the code, as all action related classes and enums are now organized in a single module.
-
Florian Schröder authored
The 'all_players_ready' field was moved from 'state_representation.py' to 'game_server.py'. Instead of being part of the initial state of the game, it's now part of the server environment, making it easier to keep track of the readiness of all players. Additionally, the game configuration in 'study_config.yaml' was updated to accommodate one player instead of two and no bots.
-
Florian Schröder authored
The configurations for study level and game layout have been updated to accommodate new requirements. Additionally, a RecipeValidation class has been created to handle recipe graphs, which is now being utilized in both the drawing and game_server files. This is instead of the previous more scattered approach of handling such graphs within other classes or standalone functions. These changes make the code more organized and efficient.
-
- Feb 28, 2024
-
-
Florian Schröder authored
This commit updates all references from Overcooked Simulator to Cooperative Cuisine across various titles, descriptions, URL and documentation in the code. Also added an undo dispenser pickup option to level configuration files and changed default server URL to localhost.
-
Florian Schröder authored
All instances of 'overcooked_simulator' have been replaced with 'cooperative_cuisine'. This includes changes in file paths, imports, and script names. The necessary adjustments to reflect this rename have also been made in the documentation, setup files, test scripts, and CI/CD configuration.
-
fheinrich authored
-
- Feb 27, 2024
-
-
Fabian Heinrich authored
-
- Feb 25, 2024
-
-
Fabian Heinrich authored
-
- Feb 22, 2024
-
-
fheinrich authored
-
Fabian Heinrich authored
Fixed finishing study. Button did not show properly, now does. last level bool is sent when connecting to game
-
- Feb 21, 2024
-
-
Fabian Heinrich authored
- Can be used via main with flag
-
- Feb 16, 2024
-
-
Fabian Heinrich authored
-
- Feb 14, 2024
-
-
Florian Schröder authored
-
Florian Schröder authored
Several GUI instances are managed by a study server for matchmaking. Needs code adjustments to work (change static var)
-
- Feb 08, 2024
-
-
Florian Schröder authored
The game environment now supports vectorized states for reinforcement learning agents. This includes updates on various classes such as OrderManager, Counter, and Player. Several new utility functions are added to facilitate the conversion of the game state to vector form. The new vector state includes players, counters, orders, and game status.
-
- Feb 07, 2024
-
-
Florian Schröder authored
A new class called ManageEnv was introduced, encapsulating manager_id, env_id, and a reason. The asynchronous function stop_env in the game_server.py file was refactored to take an instance of this class as an argument instead of three separate arguments. Additionally, a trailing slash was added to the stop_env request URL in the overcooked_gui.py file.
-
- Feb 06, 2024
-
-
Fabian Heinrich authored
Fixed: Burn no longer continues after taking things out of equipment, can take things out of cooking equipment again
-
Fabian Heinrich authored
-
- Feb 04, 2024
-
-
Florian Schröder authored
This update introduces comprehensive hook management, improved environment setup functions, and a new class for logging and recording simulations. The enhanced hook management ensures better callback registration and tracing of specific simulation events. Extra setup functions allow more flexibility in setting parameters from the environment config. The new logging and recording class makes it easier to capture simulation data in a structured format for analysis. Various minor fixes and code refactoring are also included.
-
- Feb 01, 2024
-
-
Florian Schröder authored
This commit introduces agent configuration files for the Overcooked game simulator and enhances error handling in the game server. Notably, it includes safeguards to prevent errors when player data or environment IDs do not exist. Also, it modifies the game GUI to handle player keys and websockets according to the number of humans and bots in the game.
-