For Developers

One function, and your game
can carry a match.

Your game keeps earning for as long as it is listed: a share of the platform's cut on every match played on it, credited by the settlement step itself. Non-exclusive, no listing cost, and for the first cohort we write the port for you.

The offer, stated plainly

You keep the game

Non-exclusive. List it here and keep it anywhere else it already earns.

You earn per match, not per install

A share of the platform's cut on every match played on your build, credited automatically at settlement and visible on the public earnings page.

We do the port

Send a build. For the first cohort we write the wager layer against our own contract and hand it back. You do nothing.

Your build is frozen, and versioned

An accepted build is hashed and every match references that hash. Shipping an update creates a new one and re-enters the gates; matches already open settle against the old build, which never stops existing.

What a game may not do

The sandbox does not police behaviour, it removes the capability. A listed module has no clock, no network, no filesystem, no ambient randomness and no threads. Its entire view of the world is four host functions.

That is what makes a stake on a stranger's build a reasonable thing to accept - and it is also why porting is usually a day, not a month: the surface is tiny.

The contract

A game is a pure function of a seed and an input trace. Same seed, same inputs, same result, on any machine, forever.

outcome = run(seed, input_trace)

;; host -> game  (the entire ABI)
(import "env" "input_get"    (func (param i32) (result i32)))
(import "env" "random_next"  (func (result i64)))
(import "env" "frame_count"  (func (result i32)))
(import "env" "checkpoint"   (func (param i32) (param i64)))

;; game -> host
(export "run"   (func (param i64 i64) (result i32)))

checkpoint(frame, hash) is the one that earns its keep. Call it every N frames with a hash of your state and a disagreement can be binary-searched down to the exact frame, instead of diffing whole memory images.

Run the gates yourself

Drop a build into the checker - it runs the three gates in your browser, on your machine, and nothing is uploaded. When two runs disagree it names the frame.

node kit/dev/gatecheck.mjs build.wasm

SEEDS=50000 MATCHES=25 \
  node kit/dev/gatecheck.mjs build.wasm

Same gates from the command line, non-zero exit when a build is held, so a determinism regression fails your build instead of your submission. The starter kit has the host, three templates, six sample builds - three of which are held - and a worked port of an ordinary browser game, which measures the difference: 8 different scores from one recording before, exactly one after.

Compile targets

Anything that emits WebAssembly: Rust, C, Zig, AssemblyScript, Odin, hand-written WAT. Floats are fine - NaN payloads are canonicalised at the boundary. SIMD, threads and relaxed SIMD are off, so a module using them will not load.

The four gates

All four are mechanical. None of them is a person reading your source and forming an opinion.

Gate 1 · seconds

Static validation

Module parses, imports sit inside the ABI, required exports present, memory ceiling declared, asset manifest free of anything executable. Pass or fail, no judgement.

Gate 2 · the load-bearing one

Determinism fuzz

Thousands of seeds and random input traces, run under two codegen paths and compared checkpoint by checkpoint. Any divergence is an automatic hold. The score distribution is swept in the same pass for a band that only opens rarely.

Gate 3 · measurement

Skill measurement

A scripted weak run and a scripted strong run play the same seeds, so luck is held constant. If the strong one cannot pull clear, the player is not deciding the outcome and the game is not listed.

Gate 4 · first week

Shadow period

A new build starts at the lowest tier while every match is re-simulated, not sampled. Clean run and the tiers open on a ladder. Every build serves this week - it is about a new build, never about the game.

The last real run - sandbox/report.json,

Four builds, seeds each. One listed, three held, and the measurement that decided it in every case.

Submit a build

Two ways in. Either send the build and we port it, or run the gates locally first and submit something that already passes.

What happens next

Gate 1 runs on the file and comes back in seconds with a build hash.

Gate 2 takes the longest - it is a fuzzer, and it is the reason a stake on your build is safe to accept.

Gate 3 measures whether the player decides it, and you see the numbers either way.

Listed at the lowest tier for the shadow week, then the tiers open.

◆
This form queues locally on this build. Until the submission endpoint is attached, send builds to the contact on @BrawlStreetGame and they land in the same cohort.