The thesis

What is KTHX?

KTHX is a deterministic game engine that turns classic arcade games into massive, real-time, skill-based arenas whose outcomes are audited rather than trusted. Every match is a pure function of its signed inputs, so anyone can re-run it and land on the exact same result - which is what lets a ranking stand on its own without a hidden server or a referee you have to trust.

Start here5 min read

#The idea in one sentence

One deterministic engine computes the identical match for every player and replays it frame-for-frame - so the outcome is verified, not asserted by a server you can’t see.

Ricoshot is the founding game on that engine: a Peggle-style physics battle royale where up to a hundred players share one arena. But the game is the demo. The real artifact is an engine where a match is a pure function of its signed inputs - feed the same inputs to the same code and you always land on the same result, on any machine, forever.

That single property is what these docs are about, because it changes what a competitive game can promise its players.

#The problem with trust-me servers

Most online games run their match logic somewhere you can't look. You send inputs, a hidden server decides what happened, and a screen tells you the result. You cannot prove a desync. You cannot prove a ranking was fair. You cannot prove the dice weren't loaded. "Fair" is just a claim on a screen.

Trust-me server

You take its word for it

  • Match logic runs where you can’t see it
  • Desyncs you have no way to prove
  • No independent replay of a result
  • The operator is the only referee
Deterministic engine

Everyone computes the same match

  • Identical logic for every player
  • Every result has a replay path
  • Scales from a duel to a huge arena
  • Outcomes are verified, not trusted

#Provable play, not a reskinned coin flip

This is not a slot machine wearing a game's clothes. Ricoshot rewards aim, timing and combo play; the randomness it does use (board layout, offers) is committed up front and provably fair; and the bots that fill an arena are difficulty, never a place on the board. The engine is the referee, the replay is the audit, and nobody has to be trusted.

#Why this is cool

A deterministic core is a small idea with big consequences:

Duel → stadium
1 engine
The same match sizes itself to the crowd.
Verified, not trusted
0 referees
Strangers can check each other's games.
Nothing to buy in
free
Every match is free to enter; skill decides the ranking.

Put those together and you get a skill game whose results are decided by math, not by an operator's say-so. It is free to play, the ranking is whatever the re-runnable computation says it is, and every finished match leaves a record a stranger can replay and check.

#How to read these docs

Follow the sidebar top to bottom, or jump straight to what you came for:

  • Determinism & math - how identical results are guaranteed, every formula the kernel runs, how a match is replayed and verified, how randomness is committed, and why that makes the engine a fair referee.
  • Network & scale - the peer-to-peer fabric, the road toward massive arenas, and how spectating works.
  • Reference - the pinned constants and a glossary.

Press ⌘K (or /) anywhere to search everything.