Claim set ·
data/claims/compound-interest.yamlCompound interest (dopewars implementation)
Concept: Compound interest.
In dopewars, each accepted jet applies the 10% debt rate to the current integer balance, so the balance includes prior interest in later updates. compound-interest/dopewars-debt
About: dopewars Compound interest
Codedopewars source code ·src/dopewars.c#L108int DebtInterest = 10, BankInterest = 5;dopewars source code · src/dopewars.h#L294price_t Cash, Debt, Bank;dopewars source code · src/serverside.c#L452-L465} else if (i != Play->IsAt && (NumTurns == 0 || Play->Turn < NumTurns)
&& Play->EventNum == E_NONE && Play->Health > 0) {
dopelog(4, LF_SERVER, "%s jets to %s",
GetPlayerName(Play), Location[i].Name);
Play->IsAt = i;
Play->Turn++;
g_date_add_days(Play->date, 1);
Play->Debt = Play->Debt * (DebtInterest + 100) / 100;Checked by claude, 2026-10-22 — read the pinned rate declaration, price_t balance field, and accepted-jet branch; the debt update uses the existing balance and runs once on that branchCited by: Compound interest