You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GameBoardRenderer and SetupBoardRenderer duplicate tile geometry, grid drawing, and piece rendering logic. BoardCoordinateMapper exists only in setup — game reimplements the same row-flip math internally.
What to do:
Extract common board rendering (grid, tiles, pieces) into a shared base class or utility
Move BoardCoordinateMapper out of screens/setup/ into a shared location (e.g. utils/)
Both renderers should extend/use the shared component
GameBoardRendererandSetupBoardRendererduplicate tile geometry, grid drawing, and piece rendering logic.BoardCoordinateMapperexists only in setup — game reimplements the same row-flip math internally.What to do:
BoardCoordinateMapperout ofscreens/setup/into a shared location (e.g.utils/)Key files:
GameBoardRenderer.java:55-99, 101-169SetupBoardRenderer.java:42-60, 78-139BoardCoordinateMapper.java:11-42(setup only)GameBoardRenderer.java:64-72(reimplements coordinate mapping)The text was updated successfully, but these errors were encountered: