# Funding sim ## What this builds A short game about the math of a young company. The person is the founder. Months pass. Payroll goes out, or does not. Rounds can be raised on stated terms. Dilution is computed, not hand-waved. A run ends at a sale, a shut-down, or month 36. The names and the numbers are original. This is a board game about money, not financial advice. Read `spekkr.inputs.json` first. `company` and `founders` start the cap table. `option_pool` turns on a pre-round refresh. `news` shows headlines. `script` chooses the market event table. Tests pin the seed. ## Out of scope - Real fundraising, real securities, or advice. - Network or a live market feed. - More than one founder account in this version; the founder is one row. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. The cap table - Rows are holders with a class (`common`, `option`, `preferred`) and a share count. - A priced round adds a preferred row of `investment / price_per_share` shares, at the price in the event. - If `option_pool` is on, then immediately before a priced round the table is topped up so options are 10% of the post-top-up, pre-money count, diluting every existing row equally. Accept when: the dilution fixtures in `design.md` produce the stated tables, to the share and to the penny of price. ### R2. Payroll and cash - Cash starts at 40,000. A month costs 12,000 in payroll unless a hire or fire event has changed the monthly burn, as in the table. - If cash would go negative at month-end, the game ends as `missed_payroll`. - A raise adds cash at the start of the next month. Accept when: a fixture of three months with no raise ends as missed payroll in month 4, with the cash trail in the file. ### R3. A scripted game - `fixtures/northbeam-calm-7.json` is a 36-month tape of decisions on the `calm` script, seed 7. It must end as `sale` with the proceeds and founder-percent in the file. - A second tape, `fixtures/northbeam-choppy-2.json`, ends as `shut_down` in month 19. Accept when: both tapes reach the documented endings, and the cap table at the sale matches the file. ### R4. Files - One command runs the dilution, payroll, and tape tests, and writes the four screenshots. No network. Chance only from a pinned seed. Accept when: the command passes with the option pool on and off (the sale tape's file has a sibling for pool off). ### R5. Inputs - The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key. Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check. ## Verification Cap-table and dilution arithmetic is tested to the share and the penny, including an option-pool refresh. A short payroll fixture misses payroll on the documented month. Two scripted games reach a documented sale and a documented shut-down. No live market and no network. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to play, how to pin a seed, and how to run the checks.