ALTXI

Type in your friends' names, five a side, and watch a cricket match that never happened, ball by ball, with commentary. A random seed chosen before the first ball decides everything, and when the match ends your browser can prove the seed wasn't swapped.

Open ALTXI

Made
Built with
TypeScript, React, Hono, Cloudflare Workers and D1
Status
Live

The question

Can a game be fair without anyone having to trust the server? In ALTXI nobody controls anything: no tactics, no ratings, no buttons during play. The only way to cheat would be to change the result after the fact, so the whole design is about making that checkable.

How it works

Checking the result

Before the first ball, each match publishes a commitment: a SHA-256 hash of the seed, the fixture and the rules version. The hash gives nothing away about the seed. When the match ends, the seed itself is published, and your browser recomputes the hash. If they match, the seed, and so every ball, was fixed before the match began.

commitment = sha256(seed + fixtureId + rulesVersion)

This is commit-reveal, the same idea as sealing your guess in an envelope before the answer is known.

Evidence

What didn't work, and the trade-offs