Skip to content
Snippets Groups Projects
  1. Mar 13, 2024
    • 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
    • Florian Schröder's avatar
      Refactor config dictionary references in drawing.py · c62b0ca8
      Florian Schröder authored
      The reference to the config dictionary has been refactored for better organization in the drawing.py file. Previously, key-value pairs were directly accessed from the config dictionary, now they are accessed from a nested dictionary under the "Gui" key. This change aims to improve code clarity and manageability.
      c62b0ca8
    • Florian Schröder's avatar
      Merge branch '117-put-drawing-constants-in-vis-config' into 'dev' · 62175a1f
      Florian Schröder authored
      Resolve "Put drawing constants in vis config"
      
      Closes #117
      
      See merge request scs/cocosy/overcooked-simulator!83
      62175a1f
  2. Mar 12, 2024
    • Florian Schröder's avatar
      Update pygame visualization settings · af78587a
      Florian Schröder authored
      The visualization settings for the pygame 2d visualization such as 'use_player_cook_sprites', 'show_interaction_range', and 'show_counter_centers' are now part of the configuration in 'visualization.yaml'. If these settings are not defined in the configuration, the program will use default values. This change allows for easier modification of the visualization aspects without directly changing the code each time.
      af78587a
  3. Mar 11, 2024
  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
    • 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
    • Florian Schröder's avatar
      Remove redundant pprint statements in study_server · b3dd5d57
      Florian Schröder authored
      The pprint import and its instances were removed from study_server.py to clean up the code. The change will not affect the functionality, as the pprint statements were only used for debugging and are not necessary for the server's operations.
      b3dd5d57
    • Florian Schröder's avatar
      Remove level specific config and item info files · 080bf359
      Florian Schröder authored
      This commit removes the level specific configuration and item information files for 'level1' and 'level2' under the cooperative_cuisine project. Changes have been made to consolidate the configurations into a single file, which improves the maintainability and organization of the application.
      080bf359
    • Florian Schröder's avatar
      Refactor recorder and hooks setup in config files · 6a671b9e
      Florian Schröder authored
      This commit refactors the setup of recorders and hooks in several configuration files. It simplifies the YAML structure, renames "extra_setup_functions" to "hook_callbacks", and replaces "log_path" with "record_path". This makes the configurations cleaner and more intuitive. The update also removes the "func" and "kwargs" in the extra setup functions. Now only hooks are registered. This change should not affect functionality, because until now only hooks were registered as extra setup functions.
      6a671b9e
  5. 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
    • Florian Schröder's avatar
      Refactor 'player_config' usage and improve typing in 'cooperative_cuisine' · 95500cc8
      Florian Schröder authored
      The 'player_config' dictionary is replaced with the PlayerConfig class to provide type-checking and improve readability. This change is applied across different files in the 'cooperative_cuisine' module. Additionally, this commit improves type hints for several variables and parameters to assist with code interpretation and potential error prevention.
      95500cc8
    • Florian Schröder's avatar
      Refactor docstrings for consistency and update environment name · 2bd77a93
      Florian Schröder authored
      Docstrings across classes and functions in different modules have been adjusted for consistency, specifically in how Return and Raise explanations are formatted. This makes the code more readable and uniform. Additionally, the environment name in 'environment.py' has been updated from "overcooked_sim" to "cooperative_cuisine_1".
      2bd77a93
  6. Mar 08, 2024
Loading