- Mar 27, 2024
-
-
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.
-
- Mar 26, 2024
-
-
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.
-
- Mar 20, 2024
-
-
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.
-
- Mar 18, 2024
-
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Mar 13, 2024
-
-
Fabian Heinrich authored
-
Fabian Heinrich authored
- Looks simpler - Adjusted button hiding on number of humans - Kitchen size gets returned in level info
-
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.
-
- 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.
-
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.
-
- Mar 10, 2024
-
-
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.
-
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.
-
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.
-
- Mar 08, 2024
-
-
fheinrich authored
-
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.
-
- Mar 05, 2024
-
-
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.
-
- Mar 01, 2024
-
-
- Feb 29, 2024
-
-
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.
-
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 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.
-
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.
-
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.
-
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.
-
- Feb 28, 2024
-
-
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.
-
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.
-
- Feb 14, 2024
-
-
Fabian Heinrich authored
-
- Feb 06, 2024
-
-
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.
-
- Feb 03, 2024
-
-
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.
-
- Feb 02, 2024
-
-
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.
-
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.
-
- Jan 30, 2024
-
-
Fabian Heinrich authored
-
- Jan 26, 2024
-
-
Florian Schröder authored
-
Florian Schröder authored
-
Florian Schröder authored
This commit includes comprehensive test files for both Item and CookingEquipment classes in the simulator. These tests examine various aspects such as name, progress, and combining capabilities of items, and the ability of cooking equipment to combine with items and progress cooking.
-
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.
-
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.
-
- Jan 25, 2024
-
-
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`.
-
- Jan 22, 2024
-
-
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.
-