Skip to content
Snippets Groups Projects
  1. Aug 20, 2024
  2. Mar 15, 2024
  3. 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
  4. Mar 08, 2024
  5. Mar 07, 2024
  6. Mar 05, 2024
    • Florian Schröder's avatar
      Update code comments and typespecs across modules · bef24476
      Florian Schröder authored
      Enhanced overall code clarity by adding and revising detailed comments, docstrings, and typespecs in various Python modules. Significant changes include refining functionality of effect management in 'effects.py', modifications to use of 'numpy' arrays and functions in 'movement.py', as well as adjustments to handling hooks. Additionally, minor updates in 'configs/study/level1/level1_config.yaml' and 'counter_factory.py' were made.
      bef24476
  7. Feb 29, 2024
    • 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
Loading