Game Contracts
Every game is different - some more than others. Game contracts allow for specifying and configuring the rules of various games that will be provided by the protocol. Many game variants can be supported by different configurations and rulesets within the same contract, while others may require entirely standalone instances of contracts.
Game contracts handle initialising requests for new game instances triggered by players, or scheduled by set intervals. These contracts make automated decisions on whether bets can be accepted based on pre-specified criteria or rules, and determine the multipliers or payouts that should be offered based on a player’s requested game configuration or bet selection.
When provided with verifiable randomness, the smart contract converts generic random inputs into meaningful game results, and assesses bets to determine whether they’ve won or lost. It also determines what transfers should be made to settle these bets.
Last updated