← HALL
Immutable State Tree Reducer Mutation
INSANE
+1000 XP REWARD
⏱ Limit: 20m
// MISSION BRIEFING //
ANOMALY DESCRIPTION
A gaming state manager reducer performs deep updates by modifying properties directly on the existing state tree. In an immutable architecture, this breaks state time-travel. Refactor to return a clean new state object with updated branch values.
SPECIFICATION SUITE
Immutable branch creation
Input: {player: {inventory: {gold: 10}}}, {type: 'UPDATE_GOLD', amount: 5}
Expected: {player: {inventory: {gold: 15}}}
Unhandled action fallback
[PROTECTED TEST]
Evaluation logic hidden to prevent hardcoding.
RADAR HINTS
Hint #1 (Click to decrypt)
Spread each level: return { ...state, player: { ...state.player, inventory: { ... } } }.
STATIC ANALYSIS CONSOLE
Ready for dispatch
Press "VERIFY & SUBMIT" or Ctrl+Enter to evaluate your patch.