TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mukybaby/Simple-Shop-Sim/llms.txt
Use this file to discover all available pages before exploring further.
res/ directory holds two JSON files that seed the game with items and customer names. Both are plain JSON — you can edit them in any text editor without touching any Python code. Changes take effect the next time you launch the game.
res/items.json
Defines the shop’s product catalogue. Each entry is a two-element array [name, price].
Stock is not stored in this file. Every item is initialised with a stock of 5 when the game starts — this value is hardcoded in main.py, not here.
Format
| Field | Type | Description |
|---|---|---|
item[0] | string | The item’s display name. |
item[1] | number | The item’s base sale price (integer). |
How it is loaded
main.py reads this file once at startup and appends an Item object to shop.inventory for every entry:
item[0]→Item.nameitem[1]→Item.price5→Item.stock(initial stock, hardcoded)
res/customer_names.json
A flat array of strings used as the name pool for all customers. Each day, make_customers() samples names from this list to populate that day’s customer roster.
Format
random.choice() inside make_customers(). The function attempts to avoid repeating names within a single day’s roster.
Pool size and day limits
The pool currently contains 71 names. Customer count per day isday × 3, so:
| Day | Customers needed | Fits in pool? |
|---|---|---|
| 1 | 3 | ✅ |
| 10 | 30 | ✅ |
| 23 | 69 | ✅ (barely) |
| 24 | 72 | ⚠️ exceeds pool |
make_customers() would hang indefinitely because no fresh name could ever be found.