How an accounting exploit, a failed market experiment, and a simpler economy changed CryptoBro's development.
There's a particular kind of bug that feels almost too appropriate for the game you're developing.
For CryptoBro, that bug involved creating Money through cryptocurrency trading.
Not through mining.
Not through upgrades.
Just buying and selling.
The discovery came while we were investigating a new idea called Capital Rotation.
At the time, we'd already made cryptocurrency markets respond to trading.
Selling one cryptocurrency could reduce its value. Buying it could increase demand.
But we had a new problem: after enough selling, all three cryptocurrency markets could become depressed.
We wanted to model something familiar from investment markets.
When investors lose interest in one asset, they may move their money into another.
In CryptoBro, that could create opportunities for players to switch between BoolCoin, QuesadillaCoin, and UniCoin.
Our first idea was straightforward.
When the player sold one cryptocurrency, another randomly selected cryptocurrency would receive a price boost.
It sounded reasonable.
Until we examined what a determined player could do with it.
Imagine someone holding a large amount of UniCoin.
They could repeatedly buy and sell QuesadillaCoin, triggering additional demand in UniCoin, then sell the inflated UniCoin holding for a profit.
The player wouldn't merely be reacting to the market.
They'd be manufacturing favorable market conditions through a predictable sequence of trades.
That was already a significant design problem.
But the investigation uncovered something even more fundamental.
Our existing settlement system could duplicate Money.
Earlier versions of CryptoBro allowed fractional cryptocurrency holdings and fractional Money accounting.
The trading system also tracked fractional settlement remainders.
Under certain circumstances, a fractional remainder could be credited to the player while also being retained for a later transaction.
That meant the same value could effectively be paid twice.
Repeated buying and selling could increase Money without any legitimate mining income.
In one controlled test, an initial balance of 3 Money grew to almost 20 Money through repeated trading.
Not exactly the economic simulation we'd intended.
The initial instinct might be to fix the remainder calculation.
But reviewing the problem led me to a more important question.
Why were we tracking fractional cryptocurrency holdings in the first place?
CryptoBro isn't a real financial exchange.
Players don't need to own 1.047277 QuesadillaCoin.
They don't need to manage 2.10 Money.
And the game doesn't benefit from a complicated system that preserves microscopic transaction remainders.
So we simplified the economy.
Money is now a whole number.
Cryptocurrency holdings are whole numbers.
Buying cryptocurrency purchases the maximum affordable number of complete units.
Selling cryptocurrency liquidates the player's complete holding.
Market prices can still contain decimals, but the final transaction settles in whole Money.
Purchases round their total cost upward. Sales round their total proceeds downward. A sale that would produce zero Money is refused rather than consuming the player's cryptocurrency.
No fractional remainders carry forward.
After implementing these rules, the original Money-duplication exploit was eliminated.
That was an important reminder that sometimes the best solution isn't a more sophisticated algorithm.
Sometimes it's removing complexity that never needed to exist.
We then returned to Capital Rotation.
Instead of directly rewarding a SELL with an increase in another cryptocurrency's price, we implemented simulated investor activity that operates independently on the market's existing clock.
The system periodically evaluates investor movement.
Cryptocurrencies experiencing selling pressure are more likely to become sources of capital flight, while another eligible cryptocurrency can receive additional demand.
But a sale doesn't guarantee an immediate boost elsewhere.
The player can influence economic conditions through trading without directly controlling the investor simulation.
We also discovered and corrected an unintended restriction that prevented the cryptocurrency currently being mined from receiving investment.
That restriction gave players influence over recipient selection simply by switching which cryptocurrency they were mining.
Removing it restored the intended independence of investor behavior.
The completed implementation passed its economic-integrity tests and produced more opportunities for depressed cryptocurrencies to receive positive investor demand.
It hasn't solved every balancing question.
In particular, our simulations haven't demonstrated that market leadership changes substantially more often, and extreme selling can still leave multiple markets depressed.
Those are questions for continued playtesting.
But we've reached a much better foundation.
CryptoBro now has three distinct cryptocurrencies, competing miners, player-influenced prices, autonomous investor activity, and a simpler integer-only economy.
And perhaps the most important result is that we understand the system better than we did before the experiment.
Our next focus is improving the early-game experience again: clearer cryptocurrency descriptions, better Random HASH progression, and more obvious feedback when Network Supply is exhausted.
The larger mining empire is still waiting beyond that.
This development journey has reinforced something I believe is fundamental to making games.
A complicated system isn't necessarily a good system.
And a feature isn't finished merely because the code works.
Sometimes you build a mechanic, discover an exploit, investigate the underlying problem, and realize the game would be better if you made the whole thing simpler.
Of course, accidentally creating infinite Money in a game called CryptoBro is pretty funny.
I almost wish we could claim it was intentional satire.
Almost.