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
{{ message }}
Repository navigation
L14.P2 Reducing damage at higher levels: check rejects correct solutions that don't reassign amount #1388
What happened?
I solved the problem with a solution that worked and accomplished everything intended but did not pass the tests. Doing the multiplication by 0.5 at the subtraction rather than assigning the result back to amount fails despite a 10-damage attack still being reduced to 5 above level 2, with full damage below level 3. The second check, "Damage Amount Is Correct Value", passed.
Where were you in the app?
L14.P2 Reducing damage at higher levels
What did you expect to happen?
The test should accept the other solutions that work as intended instead of restricting to certain syntax.
I'm opening a PR for this. The restriction is in test_multiplication_is_used_to_reduce_damage_amount in TestReducingDamage.gd, which requires an assignment targeting the function's first parameter, so I'll widen it to accept the other correct forms.
Activity
madison-nicole commentedon Sep 8, 2026
I'm opening a PR for this. The restriction is in test_multiplication_is_used_to_reduce_damage_amount in TestReducingDamage.gd, which requires an assignment targeting the function's first parameter, so I'll widen it to accept the other correct forms.
Update checks to address GDQuest#1388
Fix: Accept additional correct solutions in L14.P2 damage check (GDQu…