femto / snake_game_py

a repository completely written by ai
1 stars 0 forks source link

Pass screen object to UI during initialization #19

Closed codez-bot[bot] closed 1 year ago

codez-bot[bot] commented 1 year ago

Description

The UI class requires a screen object during its initialization. This PR ensures that the screen object is created in the Game class before initializing the UI class and is passed as an argument during its initialization.

Summary

This change resolves the TypeError encountered when initializing the UI class without the required screen argument.

Fixes #18.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-ui-screen-initialization

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.