FAILURE MAP
← Case archive

FA-86208 / Game economy crafting balance / Member archive

Gem combining cascade: Budget is not reduced by earlier tiers · case 03

A cascade spends more gold than the budget.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

gems[t] = count of tier t gems for t = 0..max_tier. Tiers are processed upward: three tier t gems make one tier t+1 gem at a cost of (t+1)*10 gold each, limited by the remaining gold budget; newly made gems can cascade into the next tier. Max-tier gems never combine. Returns [counts, gold_spent].

Why this case matters

Game economies leak or destroy currency when one crafting or pricing rule is off by one boundary, rounding stage or state update; the defect is observable in exact integer outcomes.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
budget stops second tier #1[[0, 1, 1], 50][[0, 4, 0], 30]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗