Scoring a Crowd-Guess Game With Six Tiers, One Static File, and No Backend
A daily puzzle site usually starts with an API and a database. Mine started with a constraint I set on purpose: one static HTML file, no backend, no login, no build step. I built a practice demo for Noillirk, a common-a
A daily puzzle site usually starts with an API and a database. Mine started with a constraint I set on purpose: one static HTML file, no backend, no login, no build step.
I built a practice demo for Noillirk, a common-answer game. Seven prompts, twenty seconds each, and you score by how close your answer lands to what most people would say, not by how clever it is. The interesting engineering is all in the scoring and the state, so here is both.
The scoring ladder
Six tiers, and the ratio between them is the whole design:
| Tier | Points | What it rewards |
|---|---|---|
| Sky High | 100 | the single most common answer |
| second | 64 | a very common answer |
| third | 32 | a plausible common answer |
| fourth | 16 | a fair guess |
| fifth | 8 | a rare answer |
| sixth | 4 | something almost nobody typed |
A perfect climb is 700 points and 14 km of altitude on the balloon. That total matters more than it looks: it makes quality legible at a glance. 500 is a strong run, 600 is rare, 700 is the ceiling.
Binary scoring would have been cheaper to write and much worse to play. With six tiers a wrong-but-close answer still earns something, so the feedback loop is a gradient instead of a pass or fail. Retries are allowed while the twenty-second timer is still running, which turns hesitation into a cost instead of punishing what you know.
The data is a plain array
The prompt bank is 1,000 original prompts across eight themes, inline in the same HTML file. Seven prompts per climb, so a full pass through the bank is about 143 days before anything repeats. Adding hundreds more prompts costs a few dozen kilobytes; only in the low thousands would a separate JSON file plus a fetch start to make sense. That threshold is a size decision, not an architecture decision.
State without a backend
A daily mode needs a one-attempt-per-UTC-day rule with no server. The implementation is deliberately boring:
- the record key is the UTC date, so midnight UTC resets the day for everyone
- the result (score, streak, answers) lives in
localStorage - clearing site data resets it, and the UI says that out loud instead of pretending otherwise
That limitation is the honest trade for never holding a user account. It also means the site never stores what you typed. Analytics sees page views and referrers, never answers.
What a single static page buys
No deploy pipeline, no cold starts, no auth edge cases, and the whole game arrives in one request. The cost is that the daily prompt set cannot be chosen server-side, so it is derived from the date instead. Same date, same seven prompts, everyone, every language. For a shared daily puzzle that is not a compromise, it is the feature.
If you want to see the result rather than read about it, the demo is at noillirkdaily.org.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.