79647714

Date: 2025-06-01 16:17:51
Score: 2
Natty:
Report link

I finally achieved what I wanted to do.
After clicking a button to choose the level, the composable AdditionScreen is called. I then compare the level value with the difficulty value from data. If it matches, nothing to do. If not, I call the updateGameDifficulty(level) function to update the difficulty, num1 and num2.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Fabrice