Skip to content
Snippets Groups Projects
  1. Mar 11, 2024
    • Florian Schröder's avatar
      Update websocket handling and configure server host and port · c2c310b9
      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.
      c2c310b9
  2. Mar 09, 2024
    • Florian Schröder's avatar
      Add and optimize type hints, refactor functions, improve readability · 0ddb9e04
      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.
      0ddb9e04
    • Florian Schröder's avatar
      Refactor docstrings for consistency and update environment name · 2bd77a93
      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".
      2bd77a93
  3. Mar 08, 2024
  4. Mar 07, 2024
  5. Mar 05, 2024
  6. Mar 04, 2024
  7. Feb 29, 2024
    • Florian Schröder's avatar
      Refactor Action classes into separate file · 49231a76
      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.
      49231a76
    • Florian Schröder's avatar
      Update player readiness and game configuration · 8373a98b
      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.
      8373a98b
    • Florian Schröder's avatar
      Update level configurations and add RecipeValidation class · baa88a0c
      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.
      baa88a0c
  8. Feb 28, 2024
  9. Feb 27, 2024
  10. Feb 25, 2024
  11. Feb 22, 2024
  12. Feb 21, 2024
  13. Feb 16, 2024
  14. Feb 14, 2024
  15. Feb 08, 2024
    • Florian Schröder's avatar
      Implement vector state representation in game environment · 47cc026f
      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.
      47cc026f
  16. Feb 07, 2024
    • Florian Schröder's avatar
      Add ManageEnv class and refactor stop_env function · 510b3b94
      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.
      510b3b94
  17. Feb 06, 2024
  18. Feb 04, 2024
    • Florian Schröder's avatar
      Implement additional logging and recording features · 4636abf5
      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.
      4636abf5
  19. Feb 01, 2024
    • Florian Schröder's avatar
      Add agent configurations and improve error handling · 816ca407
      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.
      816ca407
Loading