Skip to content
Snippets Groups Projects
  1. Mar 18, 2024
  2. Mar 13, 2024
  3. Mar 11, 2024
    • Florian Schröder's avatar
      Refactor test_start.py for hook callback changes · 5d15016c
      Florian Schröder authored
      Removed the 'hooks_via_callback_class' usage and replaced it with 'hook_callbacks'. The 'extra_setup_functions' field has been renamed to 'hook_callbacks' to provide a more accurate description of its role. The callback logic has consequently been adjusted, reducing verbosity and simplifying the code.
      5d15016c
  4. Mar 10, 2024
    • Florian Schröder's avatar
      Add test for tutorial connectivity and game item tests · c86635e6
      Florian Schröder authored
      Expanded the tests in the 'test_study_server.py' file to include testing for tutorial connectivity. Added tests in 'test_start.py' to test the functionality of PlateDispenser and Sink game items. This included tests to validate the handling of dirty and clean plates and testing item drops and pick-ups. Various adjustments were made to players' positions to accommodate the tests.
      c86635e6
    • Florian Schröder's avatar
      Update comparisons and variable types, add tests · 14a081cc
      Florian Schröder authored
      This commit modifies comparison operators for timers to be less than or equal in various scripts. It also changes variable types explicitly in scores.py and adds several new tests for functionalities like effects, scores, information messages, trashing function etc. Additional updates include changes in values for certain default arguments in command line parser for generating images in the script for 2D visualization.
      14a081cc
  5. Mar 05, 2024
    • Florian Schröder's avatar
      Update PUT action to PICK_UP_DROP · 7c31d0ac
      Florian Schröder authored
      The ActionType.PUT has been replaced with ActionType.PICK_UP_DROP across all instances in the codebase. This change aligns the action name with its actual function, making the action more intuitive and the code easier to understand. This update also includes minor modifications in comments and function arguments to reflect the new action name.
      7c31d0ac
  6. Mar 01, 2024
  7. Feb 29, 2024
    • Florian Schröder's avatar
      Rename module 'game_items' to 'items' · e65743a5
      Florian Schröder authored
      The module 'game_items' was renamed to 'items'. Every reference to this module across different source code files was consequently updated to reflect this change.
      e65743a5
    • 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 addition test · b1e263ab
      Florian Schröder authored
      The player addition test has been updated to check for error handling. Now, it checks if adding a player with an already existing name raises a ValueError, instead of testing for a restriction in player count.
      b1e263ab
    • Florian Schröder's avatar
      Add Movement class for handling player and counter interactions · ef72806c
      Florian Schröder authored
      This commit introduces a new Movement class which handles player movements, collisions, and interactions with counters in the 'cooperative_cuisine' environment. The commit also includes necessary changes to related configurations and adjustments in the 'environment.py' and 'player.py' files to accommodate the introduction of this new class. This encapsulation enhances readability, promotes code organization, and adheres to the principle of Single Responsibility.
      ef72806c
    • Florian Schröder's avatar
      Update test suite and add coverage configuration · 2aca985b
      Florian Schröder authored
      Extended the test suite by adding new test cases and a new test file for dispensers and serving windows. The CI/CD pipeline was updated to include a coverage configuration file (.coveragerc), ensuring lines not relevant to coverage are excluded. Additionally, minor changes were made to the basic.layout file.
      2aca985b
  8. Feb 28, 2024
    • Florian Schröder's avatar
      Move game content configurations to "configs" directory · 87d43f82
      Florian Schröder authored
      All configurations, scripts, and yaml files previously held in "game_content" are now placed in the "configs" directory for logical organization and better visibility. All references within the code that previously pointed to "game_content" have been updated to reflect the new "configs" path.
      87d43f82
    • 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
  9. Feb 14, 2024
  10. Feb 06, 2024
    • Florian Schröder's avatar
      Refactor player movement and remove collision detection · 0a8e0367
      Florian Schröder authored
      The Overcooked environment module has been refactored to better handle player movements. The previously existing detect_collision function and its helper functions have been removed as they were no longer needed. Similarly, all the player speed values have been updated to reference a singular player_movement_speed attribute. The changes aimed to improve code readability, enforce unified player speeds, and remove redundant collision detection.
      0a8e0367
  11. Feb 03, 2024
    • Florian Schröder's avatar
      Remove unused progressing_counters append call · 27bea8ee
      Florian Schröder authored
      The append call to the progressing_counters list in tests/test_start.py has been removed. This was deemed unnecessary because there was no subsequent use or reference to this call in the entire codebase, improving the code cleanliness and readability.
      27bea8ee
  12. Feb 02, 2024
    • Florian Schröder's avatar
      Refactor callback registration in OvercookedEnvironment · 6f16f87c
      Florian Schröder authored
      The refactoring moves the redundant callback registrations from `overcooked_environment.py` to a dedicated function, `add_dummy_callbacks`, in `hooks.py`. This restructure streamlines the code and improves readability by reducing clutter in the Overcooked Environment initialization method.
      6f16f87c
    • 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
  13. Jan 30, 2024
  14. Jan 26, 2024
    • Florian Schröder's avatar
      Update test_start.py · 8e8075b4
      Florian Schröder authored
      8e8075b4
    • Florian Schröder's avatar
      Update test_start.py · 993908e6
      Florian Schröder authored
      993908e6
    • Florian Schröder's avatar
      Refactor overcooked simulator and tests, remove GUI lock · 28f70141
      Florian Schröder authored
      This commit removes a temporal lock previously used for the GUI. This leads to refinement and adjustments to the usage of datetime and timedelta in the simulator environment. In the tests, the Simulator class is replaced with directly creating an Environment instance and testing the desired features. Additions include comments for future TODOs relating to further enhancements and checks.
      28f70141
    • Florian Schröder's avatar
      Update player speed attribute and handle Enum serialization · dc8d7e4f
      Florian Schröder authored
      Renamed `move_dist` attribute to `player_speed_units_per_seconds` in player configuration. Also implemented `__post_init__` method in Action class to handle conversion from str to Enum type. Added a utility function `custom_asdict_factory` to handle Enum serialization for actions. Various code updates are made to accommodate these changes. Fixes merge bugs.
      dc8d7e4f
  15. 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
  16. Jan 22, 2024
    • Florian Schröder's avatar
      Refactor item transition implementation in simulator · bb1339ae
      Florian Schröder authored
      The transition implementation for items in the simulator has been updated. This refactoring introduces the filter_item_info function, replacing the previous verbose, repeating pattern with filter_item_info method calls in the overcooked_environment.py module. This makes the code more efficient and readable. Test adjustments and additional type hints were also included.
      bb1339ae
  17. Jan 19, 2024
  18. Jan 17, 2024
  19. Dec 21, 2023
  20. Dec 18, 2023
  21. Dec 14, 2023
  22. Dec 07, 2023
Loading