Brett LovedayEUC & applied AI Download CV Get in touch
Selected work

Simulation engineering

How Stake Simulator recreates a dice roll.

I built Stake Simulator with Codex so people could try an idea with virtual credits, see how the results varied and check how an individual round was calculated.

What can you learn from a session?

A few hands of blackjack or a run of dice rolls can make a change of strategy look more convincing than it is. I wanted people to be able to change a rule, run another session and inspect the individual outcomes.

The simulator has 31 game models. You can try the same starting balance with different settings, follow the balance after each round and review the whole session afterwards. The game guides explain the odds, payouts and limits of each model.

Why build a separate checker?

A visitor should be able to ask where a particular number came from. The checker takes the disclosed inputs for a completed round and calculates the result again. In Dice, those inputs are the server seed, the client seed and the bet number.

The example on this page uses invented seeds anyone can enter. Changing either seed or the bet number changes the calculation. Reproducing a roll checks that one result against the published model.

Discuss a project