Bubble wrap game
A bubble wrap game for stress relief: a board is generated from the row and column counts plus a seed, bubbles are popped by coordinates such as 0,0;1,2 or by clicking, and the remaining bubbles, combo and score are reported.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Bubble board
The board is generated deterministically from size + seed, so the same size always yields the same bubble sizes. Each popped bubble scores 10, plus 2 extra for every full combo of 5.
Set a board size to see the bubbles
What this tool does
- Pop a sheet of bubbles when a task blocks you: one click per bubble, and "Restart" (or a reload) hands you a fresh board.
- Replay a fixed sequence through the "popped cells" field (0,0;1,2), for example to reproduce a previous round including combo and score.
- Show how deterministic randomness works: the same board size always yields the same bubble sizes, while another seed changes them.
Example
Input
8x6
Output
棋盘 8 × 6,共 48 个泡泡(种子 102081) o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o 已捏破 0 个,剩余 48 个 · 连击 0 · 得分 0 把要捏破的格子写进「捏破坐标」(形如 0,0;1,2),或直接在网格上点。
With no seed given it is derived from the size: FNV-1a("8x6") % 1000000 = 102081. After popping 5 bubbles the summary line reads 已捏破 5 个,剩余 43 个 · 连击 5 · 得分 52.
Frequently asked questions
Are the bubbles randomly placed?
No, they fill the grid: columns × rows bubbles, and only each bubble size comes from the seed (0.85–1.15×). Without an explicit seed it is FNV-1a of "colsxrows" modulo 1000000, so the same size always produces the same sizes and a reload changes nothing.
How is the score computed? Is there a leaderboard?
Every popped bubble is 10 points and every full combo of 5 adds 2 points: 5 pops score 52, 9 pops 92, 20 pops 208. The score lives in your current round only — no account, no leaderboard, and "Restart" clears it.
How do I write popped cells?
As "row,col" with 0-based rows and columns, with semicolons between cells, for example 0,0;1,2 (full-width Chinese punctuation works too; the pure function also accepts newlines). Repeated coordinates count once, and a cell outside the board raises an out-of-range error. You can also just click the bubbles.
How large can the board be?
Columns and rows range from 3 to 20, so the largest board is 20×20 = 400 bubbles; anything outside that range reports an error. On a phone, staying under 12×12 keeps every bubble comfortably clickable.
Is anything uploaded or saved?
Nothing. The board is generated locally with no network requests and no local storage, so closing the page discards your progress.
Keywords:bubble wrap