Skip to content
Snippets Groups Projects
  1. Jan 26, 2024
  2. Jan 25, 2024
    • Florian Schröder's avatar
      Refactor player id type and remove global constants in UI · 47edb3ea
      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.
      47edb3ea
    • Florian Schröder's avatar
      Switch screen for drawing orders in GUI · 3403d046
      Florian Schröder authored
      The screen parameter for the draw_orders function has been changed from game_screen to main_window. This should ensure the orders will appear in the main application window instead of a separate game-specific screen, enhancing user interaction and visibility.
      3403d046
    • Florian Schröder's avatar
      Update Overcooked simulator to support state export in JSON format · df234b9c
      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`.
      df234b9c
    • Fabian Heinrich's avatar
      e22ce756
    • Florian Schröder's avatar
      Remove unnecessary lock in order enumeration · df38f03c
      Florian Schröder authored
      The lock in the enumeration of orders in the Overcooked simulator's 2D visualization was extra and thus, it was removed. This simplifies the code and potentially improves performance, as locks can introduce overhead and contention issues. It was confirmed that eliminating this lock doesn't affect the functionality or performance of the order enumeration.
      df38f03c
    • Florian Schröder's avatar
  3. Jan 24, 2024
    • Florian Schröder's avatar
      Update server and client communication in game simulator · 7ba326c6
      Florian Schröder authored
      The server (game_server.py) and client communication (overcooked_gui.py) now uses the WebSocket communication protocol. In setup.py, the 'requests' module was added as a new requirement. The game simulator now waits for a player to be ready before starting, stops a game environment if no step is taken within a minute, and pauses or unpauses a game environment. Player actions are now handled based on a new 'Action' type. The server also now handles several client types that can send messages.
      7ba326c6
    • Florian Schröder's avatar
      Refactor and enhance Overcooked simulator codebase · 6a57f19a
      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.
      6a57f19a
    • Fabian Heinrich's avatar
      Player color visible on cooks hat · 7ce4aa09
      Fabian Heinrich authored
      7ce4aa09
    • Fabian Heinrich's avatar
      Updates to requirements · 98cd84ec
      Fabian Heinrich authored
      98cd84ec
    • Fabian Heinrich's avatar
      Updates · a42180fb
      Fabian Heinrich authored
      a42180fb
    • Fabian Heinrich's avatar
      Updates · 60debf46
      Fabian Heinrich authored
      60debf46
  4. Jan 23, 2024
  5. Jan 22, 2024
Loading