Why every board score is replayed on the server

By dojol, , updated

No client writes a score

No client ever writes a score on the dojol board. A player's browser can read the board, and that is all. When a run is good enough for the board, the browser sends the run itself: the seed and the inputs. The server plays that run again and keeps its own result.

I settled this design on 2026-10-01. The written reason is short: it is cheap, because the free tier covers it, and it is transparent, because the replays are public. There was one more reason.

In the challenging days of fighting against unfair competition, I preferred the full replay of the seed and inputs on the backend as a health check. It is kind of a biased decision of "this guy totally cheated" or "this run is legit", but I don't mind as long as it helps keep the bots at bay and the real players competing against each other.

"Every score" means every score on the board, not every run played. Most runs never leave the browser. A run is sent when it would enter a visible board, or when it counts toward an achievement the board has not confirmed yet.

Same inputs, same run

A replay only works when the game is deterministic. The same seed and the same inputs must give the same run everywhere: on a desktop browser, on an iPhone and on the server. Those are different engines.

So the game's simulation avoids the math that engines compute differently. It uses its own math instead, and that math gives the same answer on every engine.

A phone has to prove this too. A desktop copy of the iPhone's engine is not the real one. Only a record from a real iPhone counts as evidence.

A replay has to be fast

The server gives each request a small amount of computing time. That limit set a rule for every game I build: the longest possible run must replay well inside it. The rest of the time is room for everything around the replay.

Overstall is inside the rule. Its longest run is 4:00, and the server needs about a quarter of a second to play it again.

What the server rejects

A replay proves that a run is legal.

When a replay does not match what the browser reported, the server rejects the run. It also tells a bug from a forged score. If the two engines disagree, that is my bug to fix, not a cheat. One of my checks forges a run on purpose, and the server rejects it.

Public replays, public thieves

Anyone can watch the replay of a score on the board. That openness had a price. A public replay is also a run that someone could copy and send in as their own. I closed that hole in two steps, because the first step alone was not enough.

The fix has a cost. Two honest runs that end in exactly the same state count as one run. An example is two players who do nothing on the same daily seed.

What would I do differently, knowing that public replays needed two more fixes? Nothing. In these times regular migrations are needed. There are costs to be paid for sure, but I prefer having a healthy playerbase rather than a broken game.

The first real run

On 2026-10-03 I played a run on the iPhone, submitted it to the board and watched its replay. It was the first end-to-end run.

It felt like a recording, which is exactly what I needed from the game itself. It shows crystal clear whether a player is doing everything legally or if it is an exploit or cheat right away.