KingNook / 2048

https://kingnook.github.io/2048/
1 stars 0 forks source link

Create separate Grid Renderer Class #12

Closed KingNook closed 1 month ago

KingNook commented 1 month ago

Context

During my refactoring journey, I have noticed that the code may become slightly cleaner if I have a GridRenderer class that stores the constants that I have defined at the start (as well as potentially the Coord_to_Pg dictionary)

Thoughts / Challenges

Should be a 'straightforward' migration of the functions I've already yoinked out of the main loop - I suspect there will be a plethora of bugs introduced by my forgetting to redefine some things, although these will sort themselves out eventually

Method

se

KingNook commented 1 month ago

Progress report as of end of 16.09.24

I have moved stuff over to the grid_renderer class so in theory the issue as written is complete. However, there are many things I would like to clean up first before marking this as done. I might open up a separate issue with major changes I plan on making though.

Planned changes

Major changes will go to a separate issue. Anything else can be fixed here before closing.

KingNook commented 1 month ago

Yeah doesn't look like this will be seeing much more changes so I'll go ahead and close it :)