Skip to content
Snippets Groups Projects
  1. Jul 30, 2024
  2. Jun 28, 2024
  3. Jun 18, 2024
  4. Apr 30, 2024
  5. Apr 17, 2024
  6. Mar 27, 2024
    • Florian Schröder's avatar
      Update SSL usage and enhance argument parsing · 843b145f
      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.
      843b145f
  7. Mar 26, 2024
    • Florian Schröder's avatar
      Extract argument parser creation into separate file · 27389f93
      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.
      27389f93
  8. Mar 20, 2024
    • Florian Schröder's avatar
      Add "env_name" parameter to game server test · 50c8a4cb
      Florian Schröder authored
      The additional "env_name" parameter has been added to the game server test setup. This addition is intended to further specify the game environment during testing, improving precision and potentially revealing more detailed results.
      50c8a4cb
  9. Mar 18, 2024
  10. Mar 13, 2024
    • Fabian Heinrich's avatar
      Fix test · 66e9d3ca
      Fabian Heinrich authored
      66e9d3ca
    • Fabian Heinrich's avatar
      Changed player and bot number selection · d901dcf2
      Fabian Heinrich authored
      - Looks simpler
      - Adjusted button hiding on number of humans
      - Kitchen size gets returned in level info
      d901dcf2
    • Florian Schröder's avatar
      Update game state in pygame 2D visualization · 7f503545
      Florian Schröder authored
      Positions and state of items and counters in the cooperative_cuisine/pygame_2d_vis/sample_state.json file were edited. This included adding new counters and items, changing current nearest counter information and positioning, modifying held objects, and altering active effect conditions among others. The changes cater for a better test coverage.
      7f503545
  11. 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
    • 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
  12. 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
    • Florian Schröder's avatar
      Add pygame tests · 70a61b45
      Florian Schröder authored
      This commit introduces a new test suite for the pygame functionality. It includes tests for color formatting and uniqueness, angle calculations, and proper initialization of the Visualizer. The tests aim to enhance game integrity and avoid potential issues with visualization.
      70a61b45
  13. Mar 08, 2024
    • fheinrich's avatar
      Fix tests · a7312d4c
      fheinrich authored
      a7312d4c
    • Florian Schröder's avatar
      Refactor game and study server scripts, update tests, improve error handling · cd3e27da
      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.
      cd3e27da
  14. 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
  15. Mar 01, 2024
  16. 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
    • Florian Schröder's avatar
      Implement coverage measurement for tests · 035b2a6d
      Florian Schröder authored
      The pytest command in .gitlab-ci.yml has been updated to include code coverage measurements. The "coverage" Python package was added in setup.py under test requirements. Also, small updates were made in tests to reflect changes in the module imports and object comparisons.
      035b2a6d
  17. 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
  18. Feb 14, 2024
  19. 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
  20. 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
  21. 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
  22. Jan 30, 2024
Loading