Skip to main content

What Provably Fair System do you use in Mines?

Written by Sylvia

Mines uses a Provably Fair system that makes each game’s tile order transparent, independently verifiable, and fixed after a bet has been placed.

Each Mines result is generated using three elements: a server seed, a client seed, and an incremental nonce. Before you place a bet, the server seed is shown as a hash. After the seed is revealed, you can check that it matches the hash shown earlier.

The game creates a random order for the tiles. For each of 24 steps, it generates a value using HMAC-SHA256:

block = HMAC_SHA256(serverSeed, clientSeed:nonce:blockIndex)

It converts four bytes from that block into a number between 0 and 1, then uses that number to choose a tile from the tiles still in the pool:

float = uint32BE(block, (i % 8) * 4) / 2^32

idx = floor(float * remaining_pool_size)

order[i] = pool.splice(idx, 1)[0]

In plain terms, the game picks a tile, removes it from the pool, and repeats so the same tile is not picked twice. Each HMAC block supplies eight values, so the game moves to the next blockIndex after every eight steps. The resulting tile order is used to determine the mine layout according to the game’s rules.

After the server seed is revealed, you can verify previous Mines results using the Verify tab. Rotating the server seed creates a new seed pair for future rounds while keeping previous results available for verification.

This lets you check that the tile order matches the seeds, nonce, and Mines calculation.

Did this answer your question?