AN ARENA ON PROVABLY FAIR DICE
Three foes on an island, and every die in the match is addressed by its stream and its turn. The house commits to its secret before the first move; at the end it reveals, and you can check every roll.
Arrow keys or WASD move; step into a foe to strike.
turn 0you 20 hpfoes left 3rolls 0
commitment
The house picks a secret and publishes its BLAKE2b hash before you move. Every roll is roll(stream, turn, sides) on an index keyed by the secret and your word: a pure function, no state, the same on every machine. After the match the secret is revealed; the hash must match, and every logged roll must come out again. Change your word and the whole match changes; the house cannot change its mind.
The Fair Arena · by Lars Rocha · built from indexrng.js (commit, reveal, roll) and terrain.js (the island).