-
- Downloads
Refactor player id type and remove global constants in UI
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.
Showing
- overcooked_simulator/game_server.py 6 additions, 5 deletionsovercooked_simulator/game_server.py
- overcooked_simulator/gui_2d_vis/drawing.py 17 additions, 12 deletionsovercooked_simulator/gui_2d_vis/drawing.py
- overcooked_simulator/gui_2d_vis/overcooked_gui.py 0 additions, 7 deletionsovercooked_simulator/gui_2d_vis/overcooked_gui.py
- overcooked_simulator/overcooked_environment.py 2 additions, 2 deletionsovercooked_simulator/overcooked_environment.py
- overcooked_simulator/player.py 4 additions, 3 deletionsovercooked_simulator/player.py
Loading
Please register or sign in to comment