- Mar 20, 2024
-
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Mar 15, 2024
-
-
Fabian Heinrich authored
- added function for calculating a graph with possible movements - used astar on this graph for the random agent
-
- Mar 09, 2024
-
-
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.
-
- Mar 08, 2024
-
-
Fabian Heinrich authored
-
- Mar 07, 2024
-
-
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.
-
Fabian Heinrich authored
-
- Mar 05, 2024
-
-
Florian Schröder authored
Added 'generated' to .gitignore, updated pdoc footer text in .gitlab-ci.yml, and included interaction state for player in player.py. The player interaction with the counter is now being tracked and a new comment was added for the progress method. This will enhance player's tracking and usage in the game environment.
-
- 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
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.
-
- Feb 28, 2024
-
-
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.
-
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
-
-
fheinrich authored
Fix marking current nearest counter in reach and stopping interactions when moving or beeing pushed away
-
- Feb 13, 2024
-
-
Fabian Heinrich authored
-
- Feb 07, 2024
-
-
Fabian Heinrich authored
-
- Feb 06, 2024
-
-
Fabian Heinrich authored
Fixed: Burn no longer continues after taking things out of equipment, can take things out of cooking equipment again
-
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
Added the definition and interactions for game effects and tools. The effect type was introduced to influence the player's interactive abilities or alter item's attributes. The tool type extends the player's interactive abilities. It also includes the part related to fire and fire extinguisher for more realistic simulation.
-
- Feb 02, 2024
-
-
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 31, 2024
-
-
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.
-
- Jan 27, 2024
-
-
Florian Schröder authored
The `overcooked_environment.py` file has been significantly refactored to streamline handling of counter setup. Post counter setup responsibilities have been shifted to the `CounterFactory` class. A utility function, `get_closest`, has been introduced in `utils.py` to determine the closest counter and is used in multiple classes. Minor updates are also made across several other classes for optimization and clarity. The 'other' score in `environment_config.yaml` has been changed from 0 to 20.
-
- Jan 26, 2024
-
-
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 player id type is updated from 'int | str' to 'str' across different files to maintain code uniformity and avoid type-related errors. Removed the global constants (USE_PLAYER_COOK_SPRITES, SHOW_INTERACTION_RANGE, SHOW_COUNTER_CENTERS) from gui files for better code structure. Moreover, function annotations are improved by providing more specific types which helps in understanding the codebase. The diff adds additional details in the form of questions or short descriptions in the comments as well.
-
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 24, 2024
-
-
Florian Schröder authored
Codebase for Overcooked simulator has been refactored. File rearrangement includes deletions and renaming to better reflect their functionalities. Within the code, several updates are made like support for using both file paths and direct strings as configurations. These amendments improve the organization, modularity, and overall efficiency of the code.
-
Fabian Heinrich authored
-
- Jan 19, 2024
-
-
Florian Schröder authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Florian Schröder authored
-
- Jan 18, 2024
-
-
Florian Schröder authored
-
Fabian Heinrich authored
-
- Dec 21, 2023
-
-
Fabian Heinrich authored
Changed world coordinate frame to unit length * number of counters in the layout. World size is determined by kitchen layout
-
- Dec 20, 2023
-
-
Fabian Heinrich authored
Changed wrong array init shape, changed wrong color usage in gui (used color names instead of rgb values)
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
Fixed determining closest counter and if the player can reach it. Added flags in gui to show ranges and interaction points
-
Fabian Heinrich authored
-
Florian Schröder authored
plate dispenser without manager. plates disappear for a time and then appear on the plate dispenser. You can now add stuff on the plates on the dispenser. New lock for gui and environment.
-
Fabian Heinrich authored
Added game mechanic washing dishes. Served plates return in the plate return, can be washed in sink. TODO can wash multiple plates in the sink by holding interact button
-