🔐 Randomness & Transparency
All game results are verifiably random using Proof of Play. The following on-chain Solidity code is used to generate dice outcomes:
solidityKopyalaDüzenlefor (uint256 i = 0; i < request.diceCount; i++) {
uint256 playerRoll = (uint256(keccak256(abi.encodePacked(randomSeed, requestId, i, "p"))) % 6) + 1;
uint256 systemRoll = (uint256(keccak256(abi.encodePacked(randomSeed, requestId, i, "s"))) % 6) + 1;
request.playerDice[i] = playerRoll;
request.systemDice[i] = systemRoll;
if (playerRoll <= systemRoll) {
wonAll = false;
}
}
📌 Explanation:
Both player and system dice are derived from a shared
randomSeed
(via Proof of Play).Every outcome is deterministic, tamper-proof, and recorded on-chain.
No hidden conditions — complete transparency is guaranteed.
Last updated