Log inGet started
World

Market Square: Currencies, Wallets and Shops Kit

README.md

economyKitTests

Checks economyKit's public rules (41 tests): the sample data loads through the five contracts and bad definitions are refused; the ledger refuses overspending whole and names the shortfall; the bank buys with fees, refuses what a player cannot afford, enforces stock and prerequisites, never charges a retry twice, sells only after items leave the bag, trades all or nothing (including a trade refused for a full bag and one cancelled or failing halfway through the hand-over, where only goods that really left a bag go back), keeps wallets, purchases and stock the same through a save and load into a new bank, keeps shared team accounts (several currencies taken all or nothing, given back, read off the bank's machine), runs the bank on the lowest peer unless the game names another machine and brings it up again when its host never ticked and stops it when its host goes away, puts back hand-edited balances, refuses grants a game did not allow, and pays income, waves, upkeep and charges; every shop screen and wallet display builds at desktop and phone sizes with unaffordable items dimmed; every screen reads in all eight looks (at least 3:1 contrast for every text); no label can break inside a word or be squeezed narrower than its text, on any screen, look, size or language; the minimal wallet line fits an upright phone with all eight currencies at any amounts; shop titles stay whole on an upright phone; the upgrade tree's arrow keys move between its nodes as drawn, none skipped; a quick-buy shop with more items than a short screen holds shows a page at a time with arrows to turn it; the close button is a drawn cross in every look; every style carries name and style, genre and setting tags; refusals read in English and Brazilian Portuguese; a shopkeeper with no shop runs the General Store (coins only, 3 to 55); what a player already bought shows "Owned" on every buy screen, never a red "Sold out"; every wallet display shows "+25" and "−20" for a moment when money moves; a wallet starts over (back to each currency's start, purchases forgotten unless kept) and a player may ask for it only when the game allows it; the README's first example works as written. The bank runs against fake players and a fake shared store, so real wallets are never touched.