Description
Currently, the LEVEL_DATA array (containing multipliers, risk levels, and color styles) is hardcoded inside app/components/OverclockGame.tsx. This makes it hard to manage game configuration.
Task
- Create a new file
app/lib/gameConfig.ts.
- Move the
LEVEL_DATA constant array to that file and export it.
- Import
LEVEL_DATA back into OverclockGame.tsx.
Why?
Separating configuration from UI logic improves code maintainability.
Labels: refactor, good first issue, clean-code
Description
Currently, the
LEVEL_DATAarray (containing multipliers, risk levels, and color styles) is hardcoded insideapp/components/OverclockGame.tsx. This makes it hard to manage game configuration.Task
app/lib/gameConfig.ts.LEVEL_DATAconstant array to that file and export it.LEVEL_DATAback intoOverclockGame.tsx.Why?
Separating configuration from UI logic improves code maintainability.
Labels:
refactor,good first issue,clean-code