Skip to content
Snippets Groups Projects
  1. Aug 07, 2024
  2. Jul 30, 2024
  3. Jun 25, 2024
  4. Jun 18, 2024
  5. May 13, 2024
  6. Apr 23, 2024
  7. Apr 03, 2024
    • Florian Schröder's avatar
      Add type hints and docstrings across multiple modules · 5c100dd0
      Florian Schröder authored
      Added type hints and docstrings throughout the project, notably in the effects, orders, study server, and game server modules. These additions provide better understanding and ease in navigating through the codebase. Minor code reorganization and syntax optimization were also performed.
      5c100dd0
  8. Mar 27, 2024
  9. Mar 21, 2024
  10. Mar 20, 2024
    • Florian Schröder's avatar
      Refactor code and enhance documentation in Cooperative Cuisine project · 9954b230
      Florian Schröder authored
      Several sections of the codebase have been refactored for maintainability. The 'ORDERS' module has witnessed some cleanups and adjustments in the 'create_init_orders' method. Hooks and associated comments were added in the 'hooks' module for better understanding of code functionality. The 'pygame_2d_vis' script's documentation was also improved for clarity.
      9954b230
  11. Mar 19, 2024
  12. 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
  13. Mar 07, 2024
    • Florian Schröder's avatar
      Add constructor docstrings and type hints in classes · 20006ed9
      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.
      20006ed9
    • Florian Schröder's avatar
      Refactor and modify classes with improved explanations · b0201cd6
      Florian Schröder authored
      The classes across several files have been modified to improve clarity, provide better comments, and refine attribute representations. This commit involves refactoring the item, effect, and player classes to include more detailed descriptions and user-friendly outputs. The change also simplifies some methods and eliminates redundancies for cleaner and more efficient code.
      b0201cd6
  14. Mar 06, 2024
  15. Mar 05, 2024
    • Florian Schröder's avatar
      Update code comments and typespecs across modules · bef24476
      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.
      bef24476
  16. Mar 04, 2024
    • Florian Schröder's avatar
      Add checks for available meals before creating orders · a103b0ad
      Florian Schröder authored
      The updates address issues with empty meal lists during order creation. When no meals are available, no orders will be created, returning empty lists instead. Furthermore, the mandatory meal assertion in the environment's validate_environment method has been commented out. The meal list in the level1 config has been updated to only include 'Burger'.
      a103b0ad
  17. Mar 01, 2024
  18. Feb 29, 2024
  19. Feb 28, 2024
    • Florian Schröder's avatar
      Update meal configurations and add player context to counters · e60d58b0
      Florian Schröder authored
      Meal configurations in the level 1 configuration file are updated, swapping out the previous meals with new ones. Player name has been added as a parameter to the pick_up and drop_off methods in player.py and counters.py. This allows for better tracking of the actions of individual players, which can be useful in cooperative environments where player accountability is imperative. Additionally, served meals now also log the serving player's name, providing additional context during gameplay and post-game analysis.
      e60d58b0
    • Florian Schröder's avatar
      Rename 'order.py' to 'orders.py' and update references · aaba92f5
      Florian Schröder authored
      The 'order.py' module has been renamed to 'orders.py' for consistency and clarity. All references to this file within the code base, including import statements and comments, have been updated to reflect this change. A safer and more coherent codebase enhances readability and maintainability.
      aaba92f5
    • Florian Schröder's avatar
      Rename project from overcooked_simulator to cooperative_cuisine · 242c9860
      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.
      242c9860
  20. Feb 08, 2024
    • Florian Schröder's avatar
      Refactor scoring system and order management · 3c1fda71
      Florian Schröder authored
      The scoring system and order management have been significantly updated. The score calculation has been moved out from 'OrderManager' to external 'ScoreViaHooks' class which works via hooks. The order management updates include separating scoring from orders and removing unused functions. Changes in the configuration file and other related files updated to accommodate these modifications.
      3c1fda71
  21. Feb 07, 2024
  22. 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
  23. Feb 03, 2024
    • Florian Schröder's avatar
      Add random instance to make randomness controllable · 9fae6bad
      Florian Schröder authored
      The random module is replaced with random instance across multiple classes within 'overcooked_simulator' to make the randomness in the Overcooked simulator controllable. The 'random' instance is initialised with a seed in 'overcooked_environment' and then passed to the classes that require randomness. This improves reproducibility of experiments, as the randomness can be controlled by the seed value.
      9fae6bad
  24. Feb 02, 2024
    • Florian Schröder's avatar
      Implement hooks for tracking game events · 6b2b8c76
      Florian Schröder authored
      Added a Hooks class to monitor events related to player actions, item interactions, and state changes in the game environment. A hook triggers a corresponding event when a specific action takes place, such as a player picking up an item or a game state changing. This feature will make debugging easier and provide valuable insights during gameplay.
      6b2b8c76
    • Florian Schröder's avatar
      Refactor and centralize configuration classes · 0aaf03dc
      Florian Schröder authored
      The EnvironmentConfig and OrderConfig classes, previously defined in the utils.py file, were moved to their respective modules overcooked_environment.py and order.py. This change creates a central location for configuration and reduces unnecessary dependencies in the utils.py file.
      0aaf03dc
  25. Jan 31, 2024
    • Florian Schröder's avatar
      Add docstrings and type hinting · ff409005
      Florian Schröder authored
      The updates include adding docstrings and type hinting to several classes and methods in multiple Python files. This commit also includes fixes for inconsistent code formatting and minor bugs. The docstrings provide essential details about the classes and methods, improving readability and understanding for other developers. Furthermore, the added type hinting will enable better IDE assistance, static analysis, and clarity on expected input and output types. Lastly, the code formatting fixes and bug fixes enhance the overall code quality and maintainability.
      ff409005
  26. Jan 27, 2024
    • Florian Schröder's avatar
      Add penalty for trashing items in Overcooked simulator · b600b39e
      Florian Schröder authored
      This update introduces a penalty computation for items that the player puts into the trash in the Overcooked simulator. A new function has been added onto the Order class to calculate this penalty, and the Trashcan class has been updated to use this new function whenever an item is dropped off. This change helps to further emulate real gameplay mechanics.
      b600b39e
  27. Jan 25, 2024
    • Florian Schröder's avatar
      Update Overcooked simulator to support state export in JSON format · df234b9c
      Florian Schröder authored
      The update introduces a new function `get_json_state()` in overcooked_environment.py that exports the current game state in JSON format. Changes were made to player.py, counters.py, and game_items.py to include an additional `to_dict()` function which represents their current status as a dictionary. This commit also includes minor naming changes, such as renaming `beginning_time` to `start_time`.
      df234b9c
  28. Jan 20, 2024
  29. Jan 19, 2024
Loading