Inventory & Finance
Note: this is an original incremental “paperclip factory” implementation, not a reproduction of any specific commercial game.
How it works
- State is JSON, base64url-encoded, stored in
#....
- On load (or
hashchange), the game decodes the hash and hydrates state.
- During play, the game updates state and periodically writes it back using
history.replaceState.
- Integer-only inventory: sales and production accumulate fractional rates into carries, then execute as integer units.