Skip to content
DiceOnFlow

DiceOnFlow

Simple and on-chain dice generator for your games

Created on 18th July 2023

•

DiceOnFlow

DiceOnFlow

Simple and on-chain dice generator for your games

The problem DiceOnFlow solves

DiceOnFlow asks you for two things: type of dice and number of dice, and based on your query, it generates the dice values in the trusted way, on-chain. So, you can now enjoy your games without any fear of fraud. It also provides you with an API endpoint to integrate the dice generator into your game.

I have also shown an example game, BetOnFlow, Where you can bet your flow token on the outcome of the dice and win a 2X–6X return on your investment. (Cannot access since build failed for this version; please refer the video.)

Challenges I ran into

Randomness: I'll add more randomness by including recent data from transactions, the number of blocks, and the timestamp.

This was my first time working with cadence, so there were lots of errors in cadence and transactions. But the documents are good and well maintained. Also, paying the user back from an escrow account is still a challenge for me. There's no documentation for such cases, and every possibility I tried failed. I'm working on it to make it possible.

Tracks Applied (1)

Gaming

Dice generator is the gaming tool, along with BetIt game to generate the dice values in the trusted way, on-chain.

Discussion

Builders also viewed

See more projects on Devfolio